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.
3 years ago
dan
9e29400997
Break down code into separate lines
3 years ago
Soichiro Miki
0d3233df60
Fix "Integrating with Other View Libraries" ( #4585 )
3 years ago
Antony Budianto
84ad330833
fix typo "sever" on reference-react-dom-server.md ( #4570 )
3 years ago
Sebastian Silbermann
42100a3448
renderToReadableStream: Ensure same var name is used in `onError` ( #4562 )
3 years ago
dan
d14cbdca24
Add more details on batching ( #4559 )
* Add more details on batching
* Use a generic example
3 years ago
dan
1015a73e1a
Clarify renderToString etc usage
3 years ago
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
3 years ago
dan
65b04292eb
Document useId is not for keys ( #4557 )
3 years ago
Marco Antonio Ghiani
3fa71f02a2
Fix params order for hydrateRoot reference ( #4552 )
3 years ago
Noel Kim (김민혁)
ec2dcbc737
Update Prerequisites nodejs version ( #4538 )
* Update Prerequisites nodejs version
* Update how-to-contribute.md
3 years ago
dan
0982707a98
Update StrictMode docs about double logging ( #4531 )
3 years ago
Angelos Chalaris
56a0dca6fb
Update CDN links for React 18 ( #4528 )
3 years ago
Angelos Chalaris
f5c84d47ab
Update CDN links for React 18 ( #4523 )
3 years ago
Sukka
69ca55b931
Fix usage of useDeferredValue ( #4520 )
3 years ago
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>
3 years ago
James Herdman
7200653b44
Update conditional-rendering.md to fix formatting ( #4493 )
A slight inconsistency in the formatting used throughout for `{` `}`.
3 years ago
Manoj Kumar M
9b5505e265
updated egghead url ( #4494 )
3 years ago
salazarm
105fb7956d
update code sandboxes ( #4466 )
3 years ago
uulaal
f20da4c840
removed old "early time for hooks" note ( #4321 )
3 years ago
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>`
3 years ago
Aniruddha Shriwant
f062ee271b
[docs]: Updated CodePen links ( #4232 )
Signed-off-by: Aniruddha Shriwant <aniruddhashriwant@gmail.com>
3 years ago
Juyeong Byeon
9ed29b0df6
fix: "…" spread syntax is not an "operator" but document saying that is an "operator" so it can make developers confused ( #4209 )
3 years ago
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
3 years ago
Miltos Doulgeris
5a3576a9a1
Update outdated link to avoid redirect ( #4218 )
3 years ago
Strek
569949e266
Fix jsx example for string attributes ( #4204 )
3 years ago
Matt Perry
c8a3ccd256
Add Framer Motion to animation FAQ ( #4149 )
3 years ago
Nikita Bayev
f574b8f9a5
Add proper link to Parcel recipe for React ( #3999 )
3 years ago
Matt Wang
0f4d7a49c2
Fixes broken link to Relay "Getting Started Guide" in "Suspense for Data Fetching (Experimental)" ( #3963 )
3 years ago
Erol Aliyev
4133943e71
Fix broken link ( #3953 )
3 years ago
Dan Abramov
9b3c3f4e61
remove outdated recommendation
3 years ago
Rahul Bhooteshwar
449cb26bb9
docs: correct online editor link for jsx demo ( #3935 ) ( #3945 )
3 years ago
Nico Lovejoy
e5f91308e1
minor update to wording for thinking-in-react.md ( #3814 )
3 years ago
Alonso Holmes
91374d36b8
[Docs] Fix typo in `ErrorBoundary` docs ( #3947 )
3 years ago
Max Schmitt
ec6aa3521c
docs: add Playwright to testing environments page ( #3929 )
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
3 years ago
Siarhei Bobryk
cf86b001e7
📄 Update links to the `@axe-core/react` package ( #3925 )
3 years ago
Siarhei Bobryk
f0a9793dff
[Docs] Apply the code Markdown syntax for the value prop ( #3912 )
3 years ago
Siarhei Bobryk
dcb2466260
[Docs] Add the anchor for the first entry about "HOC" ( #3914 )
3 years ago
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.
3 years ago
Jens Reiner
babaa7ff92
Update node version of create-react-app ( #3900 )
3 years ago
daadaadaah
dab7441b1e
Update to the new version url of the Relay(v11.0.0) ( #3836 )
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
3 years ago
Simen Bekkhus
8020605812
chore: update link to Jest's docs ( #3897 )
3 years ago
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>
3 years ago
Hugo Kim
7faa7f57a6
Update broken relay documentation link ( #3895 )
3 years ago
André Elmoznino Laufer
cabe649090
docs: Improve "Thinking in React" for color-blind people ( #3883 )
3 years ago
Steve Mao
5bebe99ac7
Explain how `ref` and `key` are treated with cloneElement ( #1394 )
3 years ago
LeoTM
9c2b800f73
Update typechecking-with-proptypes.md Babel plugin-transform-class-properties ( #3825 )
3 years ago
Haroen Viaene
ca08866f52
"the browsers" -> "browsers" ( #3816 )
We are now talking about "the browsers", but I think just "browsers", "most browsers" or "web browsers" make more sense, what do you think?
3 years ago
ShouryaSrivastava01
2c019870e2
mindshift -> mind shift ( #3811 )
4 years ago
Brian Vaughn
17eae3952d
Fix "master" to "main" renaming mistakes ( #3770 )
4 years ago