Commit Graph

1172 Commits

Author SHA1 Message Date
Xavi Lee
36e8f4940d fix: correct prev link in hello-world (#5595) 2023-02-21 00:20:00 +05:30
BIKI DAS
3277c94444 Fixed wrong debug command (#5596) 2023-02-17 00:00:30 +05:30
Dan Abramov
5ef6955a90 Simplify wording 2023-01-24 07:27:10 +00:00
dan
3b0be4fbef Link to beta in content (#5495) 2023-01-24 07:03:08 +00:00
Valentin Vetter
cde02f82af Fix Typo (#5433) 2023-01-10 18:51:45 +00:00
Xiao Chuan
89ad6199ec useTransition add semicolon (#5384) 2022-12-24 00:28:36 +00:00
Toru Okugawa (Tanaka)
cfa9498466 Fix link to new URL (#5281) 2022-12-12 18:51:04 +00:00
Fuqiao Xue
2128e1e7d2 Update the link to the Node.js stream module (#5298)
Fix #5297.
2022-12-02 15:42:55 +00:00
Marcel Reis Soubkovsky
2381149963 chore: its -> it is, to 1 line (#5292) 2022-11-26 00:57:35 +05:30
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>
2022-11-18 22:01:38 +01:00
Jobayer Hossain
949fc607a9 docs: fix typo (#4944)
It seems that there is an article usage problem here.
2022-09-07 13:44:39 +01:00
JC (Jonathan Chen)
7e89958dc4 docs: fix grammar (#4949)
* docs: fix grammar

* Update strict-mode.md

Co-authored-by: dan <dan.abramov@gmail.com>
2022-09-05 04:09:51 +01:00
Andreas Schlapbach
4b5c413054 Fixed a sentence (#4950) 2022-09-01 08:31:33 +02:00
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.
2022-08-09 10:21:06 +05:30
Peter Hauke
d2deddfb6d Change plural sentence to singular (#4758) 2022-08-09 10:18:56 +05:30
椿楸冥灵
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/.
2022-08-08 10:57:01 +05:30
Aroyan
7c3e6dc55c fix: update immutable js broken link (#4878) 2022-08-06 13:12:54 +02:00
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
2022-08-06 14:51:16 +05:30
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
2022-08-05 18:14:53 +01:00
Theviyanthan Krishnamohan
efbe84e52d Fix a typo (#4870) 2022-08-04 11:01:06 +05:30
dan
dec71401e3 Hooks FAQ: Change usePrevious recommendation (#4780)
* Hook FAQ: Change usePrevious recommendation

* typo
2022-06-28 18:35:53 +01:00
Fakhruddin Ali Hussain
26caa64982 Fixes hydrateRoot link (#4775)
Fixes #4770
2022-06-27 09:09:00 +05:30
Romain Bohdanowicz
fb65da64ac docs: class properties and object spread are no longer experimental (#4754)
Co-authored-by: Romain Bohdanowicz <romain.bohdanowicz@formation.tech>
2022-06-20 20:38:39 +02:00
Peter Hauke
df2673d1b6 Fix minor grammar error (#4756) 2022-06-18 11:57:59 +02:00
Aroyan
6418ebc220 fix: update broken link for Colorable (#4753)
Update broken link for Colorable in Color contrast section
2022-06-17 14:28:05 +01:00
Kim Brandwijk
4bfd89654f docs: fix optional argument representation (#4732) 2022-06-10 12:10:28 +05:30
Strek
3aac8c5984 use proper code block (#4671) 2022-05-22 11:06:07 +05:30
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