Xiao Chuan
89ad6199ec
useTransition add semicolon ( #5384 )
2 years ago
Toru Okugawa (Tanaka)
cfa9498466
Fix link to new URL ( #5281 )
2 years ago
Fuqiao Xue
2128e1e7d2
Update the link to the Node.js stream module ( #5298 )
Fix #5297 .
2 years ago
Marcel Reis Soubkovsky
2381149963
chore: its -> it is, to 1 line ( #5292 )
2 years ago
Kunal Tiwari
e50e5634cc
Added undefined to in the list of possible return types of render function ( #5275 )
Co-authored-by: Shanmughapriyan S <priyanshan03@gmail.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2 years ago
Jobayer Hossain
949fc607a9
docs: fix typo ( #4944 )
It seems that there is an article usage problem here.
2 years ago
JC (Jonathan Chen)
7e89958dc4
docs: fix grammar ( #4949 )
* docs: fix grammar
* Update strict-mode.md
Co-authored-by: dan <dan.abramov@gmail.com>
2 years ago
Andreas Schlapbach
4b5c413054
Fixed a sentence ( #4950 )
2 years ago
Luciano Ayres
d223fbd476
Rephrase sentence ( #4880 )
Rephrase sentence referring to the single legacy method of 'UNSAFE_comonentWillMount()' on the Notes section within the 'Mounting' topic.
2 years ago
Peter Hauke
d2deddfb6d
Change plural sentence to singular ( #4758 )
2 years ago
椿楸冥灵
0bf79b420b
fix: update all immutable js broken link ( #4885 )
Immutable.js link https://facebook.github.io/immutable-js/ is now 404, change them to the correct address https://immutable-js.com/ .
2 years ago
Aroyan
7c3e6dc55c
fix: update immutable js broken link ( #4878 )
2 years ago
Aroyan
8e0b6584f6
fix: update sinon fake timers broken link ( #4879 )
* fix: update broken link for Colorable
Update broken link for Colorable in Color contrast section
* fix: update broken sinon fake timers broken link
2 years ago
AbdelRahman Hatem
6fa9dedb72
Fix Robin Pokorny’s article link ( #4867 )
Fix Robin Pokorny’s Index as a key is an anti-pattern article link
Notes:
Link is not working neither in my PC nor my phone.
I tried to open it in incognito browser and didn't work.
I don't know the website works in all countries or not but here in Cairo, Egypt doesn't work.
And this is not the first link I encountered doesn't work
2 years ago
Theviyanthan Krishnamohan
efbe84e52d
Fix a typo ( #4870 )
2 years ago
dan
dec71401e3
Hooks FAQ: Change usePrevious recommendation ( #4780 )
* Hook FAQ: Change usePrevious recommendation
* typo
3 years ago
Fakhruddin Ali Hussain
26caa64982
Fixes hydrateRoot link ( #4775 )
Fixes #4770
3 years ago
Romain Bohdanowicz
fb65da64ac
docs: class properties and object spread are no longer experimental ( #4754 )
Co-authored-by: Romain Bohdanowicz <romain.bohdanowicz@formation.tech>
3 years ago
Peter Hauke
df2673d1b6
Fix minor grammar error ( #4756 )
3 years ago
Aroyan
6418ebc220
fix: update broken link for Colorable ( #4753 )
Update broken link for Colorable in Color contrast section
3 years ago
Kim Brandwijk
4bfd89654f
docs: fix optional argument representation ( #4732 )
3 years ago
Strek
3aac8c5984
use proper code block ( #4671 )
3 years ago
Jie Peng
dfe5080e2b
fix(reference-react): typo ( #4631 )
Signed-off-by: Jie Peng <im@jiepeng.me>
3 years ago
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
3 years ago
dan
a7d2254e0d
Update more examples for 18 ( #4607 )
* Update more examples for 18
* blargh
3 years ago
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