Marcel Reis Soubkovsky
2381149963
chore: its -> it is, to 1 line ( #5292 )
2022-11-26 00:57:35 +05:30
Aroyan
7c3e6dc55c
fix: update immutable js broken link ( #4878 )
2022-08-06 13:12:54 +02:00
Jie Peng
dfe5080e2b
fix(reference-react): typo ( #4631 )
...
Signed-off-by: Jie Peng <im@jiepeng.me >
2022-05-06 21:46:36 +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
Steve Mao
5bebe99ac7
Explain how ref and key are treated with cloneElement ( #1394 )
2021-08-09 09:54:28 +02:00
William Wong
54a331d7ef
Mention useReducer as a cause of rerender in React.memo ( #3576 )
2021-03-12 13:38:34 +01:00
kamlesh tajpuri
25cc703d1f
Updating the docs to reflect the fact that React.memo can be used wit… ( #3159 )
...
* Updating the docs to reflect the fact that React.memo can be used with both class and functional components
* removed misleading para
2020-08-30 18:31:45 +01:00
Jonathan Chhabra
617021f886
Make React.memo documentation more clear ( #2762 )
...
* Make React.memo documentation more clear
* Update reference-react.md
Co-authored-by: Sunil Pai <threepointone@fb.com >
2020-03-10 10:37:44 +00:00
jarstelfox
f90d199a61
Memo: Document behavior with useContext ( #2332 )
...
* Memo: Document behavior with useContext
It is not obvious that useContext and Memo work well together. Namely, if a child component listens to a context and updates out from under them memo'd function, does the memo'd component have the right state if re-rendered?
yes, actually. but this is undocumented. Now it's not!
* fix typo tigger -> trigger
* Add more detail to all relevant pages
Co-authored-by: Alex Krolick <alexkrolick@users.noreply.github.com >
Co-authored-by: Sophie Alpert <git@sophiebits.com >
2019-12-31 13:51:08 -08:00
Bob Ziroll
0a7beebf2b
Fix typo in the React API Reference React.Suspense section ( #2412 )
...
Alternatively, "`React.Suspense` allows you to specify..."
2019-10-09 05:55:41 +03:00
renato
621f4c87bd
lowercase link to React.createElement section ( #1509 )
2019-04-24 09:14:39 +03:00
Nat Alison
25df15b83e
reapply, correctly generating links
2019-02-06 18:03:29 -08:00
Nat Alison
dc1e5366e3
revert id adding
2019-02-06 18:00:52 -08:00
Nat Alison
3e49e971d0
add everything else again
2019-02-06 17:22:04 -08:00
Dan Abramov
9d62821e9e
Tweak refwording
2019-01-25 18:12:30 +00:00
Dan Abramov
4d61b4a19d
Add Hooks to reference page
2019-01-25 15:22:36 +00:00
Alex Krolick
165ae047b4
Add note about Promise polyfill for React.lazy ( #1556 )
...
* Add note about Promise polyfill for React.lazy
Fixes #1552
* Backticks
2019-01-15 10:11:28 -08:00
Dan Abramov
0c96df0cd1
Add Suspense and lazy to API reference ( #1446 )
...
* Add Suspense and lazy to API reference
* Update content/docs/reference-react.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* Simplify
2018-11-29 23:46:00 +00:00
Sebastian Markbåge
1601307c1e
Document React.memo ( #1282 )
...
* Document React.memo
* Use named functions in memo
Uses default exports
* Nits
* Tweak to "areEqual" to match the note below
2018-10-23 16:45:34 -07:00
Brian Vaughn
9cd3667141
Corrected misleading wording about React.Children.map
2018-09-19 09:48:57 -07:00
Lucas Duailibe
dab9b8b2fd
Add 'visual components' use case for forwarding refs ( #798 )
...
* Add 'visual components' use case for forwarding refs
* Rearrange "forwarding refs" to focus on simple use case
* Minor wording nits to 2018-03-29-react-v-16-3.md
* Minor wording nits to forwarding-refs.md
* Add more info to the forwardRef reference doc
* Minor wording nits to reference-react.md
2018-04-13 17:23:19 +01:00
Alex Krolick
861544b16c
Move createRef above forwardRef
2018-04-03 10:16:19 -07:00
Rauno
3709c8e4ef
Add link to refs-and-the-dom in description
2018-04-03 01:32:51 +03:00
Rauno
9948cc94e3
Add createRef to top level API section
2018-04-02 22:20:22 +03:00
Brian Vaughn
201fcadfa7
Added React.forwardRef to API and docs
2018-03-16 09:30:07 -07:00
William Shepherd
8a7e75206b
Fix grammar ( #550 )
2018-01-24 09:36:58 -08:00
Szymon Nowicki
b646c386b8
Rolled back empty line removal.
2017-12-16 12:26:57 +01:00
Szymon Nowicki
74d974449c
Update React.PureComponent reference.
...
Rewording the `React.PureComponent` reference to make it more clear, that `React.Component` doesn't implement `.shouldComponentUpdate` at all.
2017-12-16 12:25:31 +01:00
Szymon Nowicki
04f46c4c5d
Update reference-react.md
...
Rolled back trailing whitespace.
2017-12-15 17:31:42 +01:00
Szymon Nowicki
ee1f416790
Update React.PureComponent reference.
...
Maybe I'm somehow weird, but I lived for some time with an idea that `React.Component` does implement `shouldComponentUpdate` with deep comparison. `React.PureComponent` is faster because it compares shallowly.
The changes I propose should avoid this "implicit" kind of way of thinking, since it would explicitly state that `React.Component` does not compare anything.
2017-12-15 17:29:55 +01:00
Clement Hoang
c90276f151
Update top level API for fragments
2017-12-01 17:59:19 -08:00
Iurii Kucherov
da283ec8ff
Update reference-react.md ( #276 )
...
Hi guys,
I was reading docs on `React.Children.only()` method and saw this statement `Otherwise this method throws.` and it seemed a bit unclear for me what it supposed to throw.
Please let me know if this PR makes sense.
Thank you!
2017-11-12 18:51:34 +00:00
Brian Vaughn
7267a399a0
Merge pull request #153 from mrscobbler/adding-glossary
...
Porting over glossary content from old repository
2017-10-17 11:53:42 -07:00
Fatos Morina
d70e89e2fb
Use colon
2017-10-14 19:15:11 +02:00
Fatos Morina
ddd8cca1cb
Add missing comma
2017-10-14 19:06:19 +02:00
Sophia Shoemaker
37feb36a06
adding glossary content
2017-10-12 16:02:08 -07:00
renatoselenica
ea6d90ef32
Changed the documentation for React.Children.only to make its implementation simpler to understand.
...
Fixes #87
2017-10-10 21:08:58 +02:00
Brian Vaughn
93aa551f1a
Reorganized 'docs' folder
2017-10-04 14:48:45 -07:00