Commit Graph

1145 Commits

Author SHA1 Message Date
Jie Peng
dfe5080e2b fix(reference-react): typo (#4631)
Signed-off-by: Jie Peng <im@jiepeng.me>
2022-05-06 21:46:36 +01:00
Sebastian Silbermann
3411c0d0c4 Explicitly list what methods are included in unmounting and remounting (#4618)
* Explicitly list what methods are included in unmounting and remounting

* Move up
2022-05-02 22:00:09 +02:00
dan
a7d2254e0d Update more examples for 18 (#4607)
* Update more examples for 18

* blargh
2022-04-27 20:12:07 +01:00
Muhammad Yasir
2a8e0a7ab5 Replaced old ReactDOM API with new React v18 API (#4598)
* Replaced old ReactDOM API with new React v18 API

Replaced old ReactDOM API with new React v18 API

ReactDOM.render(
  // Try changing to isLoggedIn={true}:
  <Greeting isLoggedIn={false} />,
  document.getElementById('root')
);

The above implementation has been replaced by the following implementation according to React v18. 

ReactDOM
  .createRoot(document.getElementById('root'))
  .render(<LoginControl />);

* Changed ReactDOM.createRoot syntax into two lines

```
ReactDOM
  .createRoot(document.getElementById('root'))
  .render(<LoginControl />);
```
has been changed to

```
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<LoginControl />);
```

* Added a comment on <Greeting/> comp.
2022-04-27 02:17:23 +01:00
dan
9e29400997 Break down code into separate lines 2022-04-25 16:23:25 +01:00
Soichiro Miki
0d3233df60 Fix "Integrating with Other View Libraries" (#4585) 2022-04-20 19:10:53 +01:00
Antony Budianto
84ad330833 fix typo "sever" on reference-react-dom-server.md (#4570) 2022-04-10 14:37:42 +01:00
Sebastian Silbermann
42100a3448 renderToReadableStream: Ensure same var name is used in onError (#4562) 2022-04-07 19:27:13 +01:00
dan
d14cbdca24 Add more details on batching (#4559)
* Add more details on batching

* Use a generic example
2022-04-07 15:39:12 +01:00
dan
1015a73e1a Clarify renderToString etc usage 2022-04-07 01:27:08 +01:00
dan
a78cc99618 Edits for ReactDOMServer API (#4558)
* Edits for ReactDOMServer API

* Move note below example

* No destructure

* Rm hr

* Add onError

* Drop SEO

* Update reference-react-dom-server.md
2022-04-07 00:59:23 +01:00
dan
65b04292eb Document useId is not for keys (#4557) 2022-04-06 21:49:13 +01:00
Marco Antonio Ghiani
3fa71f02a2 Fix params order for hydrateRoot reference (#4552) 2022-04-06 14:43:38 +05:30
Noel Kim (김민혁)
ec2dcbc737 Update Prerequisites nodejs version (#4538)
* Update Prerequisites nodejs version

* Update how-to-contribute.md
2022-04-03 15:34:01 +01:00
dan
0982707a98 Update StrictMode docs about double logging (#4531) 2022-03-30 19:05:09 +01:00
Angelos Chalaris
56a0dca6fb Update CDN links for React 18 (#4528) 2022-03-30 17:06:07 +01:00
Angelos Chalaris
f5c84d47ab Update CDN links for React 18 (#4523) 2022-03-30 07:47:53 +01:00
Sukka
69ca55b931 Fix usage of useDeferredValue (#4520) 2022-03-30 03:07:59 +01:00
Ricky
74246c13b9 React 18 (#4499)
* [18] ReactDOM reference to createRoot/hydrateRoot (#4340)

* [18] ReactDOM reference to createRoot/hydrateRoot

* Update note about render and hydrate

* Match the warning text

* s/Render/render

* [18] Update ReactDOMClient docs (#4468)

* [18] Update ReactDOMClient docs

* Remove ReactDOMClient where it's obvious

* Update browser message

* Update browser message note

* Update based on feedback

* Add react-dom/client docs

* [18] Upgrade homepage examples (#4469)

* [18] Switch code samples to createRoot (#4470)

* [18] Switch code samples to createRoot

* Feedback fixes

* Feedback updates

* [18] Use hydrateRoot and root.unmount. (#4473)

* [18] Add docs for flushSync (#4474)

* [18] Add flushSync to ReactDOM docs

* Seb feedback

* More Seb feedback

* [18] Bump version to 18 (#4478)

* [18] Update browser requirements (#4476)

* [18] Update browser requirements

* Update based on feedback

* [18] Add stubs for new API references (#4477)

* [18] Add stubs for new API references

* Change order/grouping

* [18] Redirect outdated Concurrent Mode docs (#4481)

* [18] Redirect outdated Concurrent Mode docs

* Use Vercel redirects instead

* [18] Update versions page (#4482)

* [18] Update version page

* Fix prettier

* [18] Update React.lazy docs (#4483)

* [18] Add docs for useSyncExternalStore (#4487)

* [18] Add docs for useSyncExternalStore

* rm "optional"

* [18] Add docs for useInsertionEffect (#4486)

* [18] Add docs for useId (#4488)

* [18] Add docs for useId

* Update based on feedback

* Add Strict Effects to Strict Mode (#4362)

* Add Strict Effects to Strict Mode

* Update with new thinking

* [18] Update docs for useEffect timing (#4498)

* [18] Add docs for useDeferredValue (#4497)

* [18] Update suspense docs for unexpected fallbacks (#4500)

* [18] Update suspense docs for unexpected fallbacks

* Add inline code block

* Feedback fixes

* [18] Updated Suspense doc with behavior during SSR and Hydration (#4484)

* update wording

* wording

* update events

* Update content/docs/reference-react.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* add link to selective hydration

* remove some of the implementation details

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* [18] renderToPipeableStream doc (#4485)

* new streaming ssr api

* add readable stream

* code snippets

* Rename strict effects / unsafe effects to use the reusable state terminology (#4505)

* Add draft of 18 release post

* Add links to speaker Twitter profiles

* [18] Update upgrade guide

* Fix typo in blog title

* [18] Blog - add note for react native

* [18] Add changelog info to blog posts

* Edit Suspense for data fetching section

* Update date

* [18] Add links

* Consistent title case

* Update link to merged RFC

* [18] Update APIs and links

* [18] Add start/useTransition docs (#4479)

* [18] Add start/useTransition docs

* Updates based on feedback

* [18] Generate heading IDs

* Add note about Strict Mode

* Just frameworks

* Reorder, fix content

* Typos

* Clarify Suspense frameworks section

* Revert lost changes that happened when I undo-ed in my editor

Co-authored-by: salazarm <salazarm@users.noreply.github.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>
Co-authored-by: Andrew Clark <git@andrewclark.io>
Co-authored-by: dan <dan.abramov@gmail.com>
2022-03-29 12:03:23 -04:00
James Herdman
7200653b44 Update conditional-rendering.md to fix formatting (#4493)
A slight inconsistency in the formatting used throughout for `{` `}`.
2022-03-26 17:24:48 +00:00
Manoj Kumar M
9b5505e265 updated egghead url (#4494) 2022-03-25 17:26:49 +00:00
salazarm
105fb7956d update code sandboxes (#4466) 2022-03-17 16:30:38 -04:00
uulaal
f20da4c840 removed old "early time for hooks" note (#4321) 2022-02-11 22:18:33 +00:00
Abrahym Sharf Eldden
55b4754073 Updated code-splitting.md (#4303)
Updated the imported `react-router-dom` Component `BrowserRouter` to read as `BrowserRouter as Router` since the code example has it as `Router` instead of `BrowserRouter`

Alternatively, can change the `<Router></Router>` component to be `<BrowserRouter>...</BrowserRouter>`
2022-02-06 12:56:58 +05:30
Aniruddha Shriwant
f062ee271b [docs]: Updated CodePen links (#4232)
Signed-off-by: Aniruddha Shriwant <aniruddhashriwant@gmail.com>
2022-01-27 17:09:28 +05:30
Juyeong Byeon
9ed29b0df6 fix: "…" spread syntax is not an "operator" but document saying that is an "operator" so it can make developers confused (#4209) 2022-01-18 19:49:12 +00:00
Jonatas de Oliveira Coêlho
e0aed3fbfb Update react-router examples to use v6 version (#4199)
* Update react-router examples to use v6 version

The exemple used to demonstrate Code-Splitting using react-router-dom is outdated. My suggestion is to use the new way of calling routes that was introduced in React Router v6

* remove index prop
2022-01-18 17:28:35 +00:00
Miltos Doulgeris
5a3576a9a1 Update outdated link to avoid redirect (#4218) 2022-01-18 16:56:11 +00:00
Strek
569949e266 Fix jsx example for string attributes (#4204) 2022-01-07 17:07:28 +01:00
Matt Perry
c8a3ccd256 Add Framer Motion to animation FAQ (#4149) 2021-12-11 10:06:59 +05:30
Nikita Bayev
f574b8f9a5 Add proper link to Parcel recipe for React (#3999) 2021-10-26 14:44:02 +01:00
Matt Wang
0f4d7a49c2 Fixes broken link to Relay "Getting Started Guide" in "Suspense for Data Fetching (Experimental)" (#3963) 2021-10-20 12:52:45 +02:00
Erol Aliyev
4133943e71 Fix broken link (#3953) 2021-10-13 14:21:59 +02:00
Dan Abramov
9b3c3f4e61 remove outdated recommendation 2021-10-10 23:07:49 +01:00
Rahul Bhooteshwar
449cb26bb9 docs: correct online editor link for jsx demo (#3935) (#3945) 2021-10-08 11:12:54 +02:00
Nico Lovejoy
e5f91308e1 minor update to wording for thinking-in-react.md (#3814) 2021-10-07 09:37:04 +02:00
Alonso Holmes
91374d36b8 [Docs] Fix typo in ErrorBoundary docs (#3947) 2021-10-05 09:47:19 +02:00
Max Schmitt
ec6aa3521c docs: add Playwright to testing environments page (#3929)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2021-09-28 08:53:08 +02:00
Siarhei Bobryk
cf86b001e7 📄 Update links to the @axe-core/react package (#3925) 2021-09-27 12:07:18 +02:00
Siarhei Bobryk
f0a9793dff [Docs] Apply the code Markdown syntax for the value prop (#3912) 2021-09-19 12:14:11 +02:00
Siarhei Bobryk
dcb2466260 [Docs] Add the anchor for the first entry about "HOC" (#3914) 2021-09-19 11:36:57 +02:00
Mikhail Efanov
d5abd1b954 Update outdated link (#3902)
I have found outdated link. I think we should update this link to direct link without additional redirect.
2021-09-13 23:43:26 +03:00
Jens Reiner
babaa7ff92 Update node version of create-react-app (#3900) 2021-09-09 17:46:45 +02:00
daadaadaah
dab7441b1e Update to the new version url of the Relay(v11.0.0) (#3836)
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-09-08 21:19:46 +03:00
Simen Bekkhus
8020605812 chore: update link to Jest's docs (#3897) 2021-09-08 10:14:59 +02:00
tusba
6bde1313e3 Fix URL's anchor to "Callback Refs" page (#3810)
* Fix URL's anchor to "Callback Refs" page

Replace "#the-ref-callback-attribute" with "#callback-refs"

* Update content/docs/reference-react-dom.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2021-09-06 18:50:32 +03:00
Hugo Kim
7faa7f57a6 Update broken relay documentation link (#3895) 2021-09-06 12:32:35 +02:00
André Elmoznino Laufer
cabe649090 docs: Improve "Thinking in React" for color-blind people (#3883) 2021-09-01 10:23:47 +02:00
Steve Mao
5bebe99ac7 Explain how ref and key are treated with cloneElement (#1394) 2021-08-09 09:54:28 +02:00
LeoTM
9c2b800f73 Update typechecking-with-proptypes.md Babel plugin-transform-class-properties (#3825) 2021-08-03 09:25:30 +02:00