zqran
1c1a81ad44
[Beta] Changed the position of the period in API Doc ( #5053 )
3 years ago
Ricky
89201dd764
[beta] Fix some broken links, add [](TODO) ( #5009 )
3 years ago
dan
a73274f094
[Beta] Autogen API table of contents ( #4995 )
3 years ago
dan
6e21a2e5a8
[Beta] Move from MDX loader to getStaticPaths ( #4990 )
* Move Markdown from src/pages to src/content
* Use getStaticProps
* Fix Fast Refresh
* Clean up
* rm unused
* Fixes
3 years ago
dan
0122c9aa8c
[Beta] Use h4 for Challenge titles ( #4980 )
3 years ago
Kid
2412995024
[Beta] fix a broken link ( #4971 )
3 years ago
Ricky
2890036c69
Add stub pages for all React and ReactDOM APIs ( #4910 )
* Add ReactDOM Client APIs
* Feedback fixes
* TODO and link fixes
* Update createRoot.md
* Nits
* Nits
* Update reactdomclient.md
* Update hydrateRoot.md
* Update hydrateRoot.md
* Update createRoot.md
* Update hydrateRoot.md
* createRoot tweaks
* bla
* tweaks
* tweaks
* tweak
* bump
* Add another troubleshooting error
* Add stubs for React.* APIs
* Add and organize remaining APIs
* Update links
* fix whitespace
* Add re-directs for old API URLs
* Fix some links
* Add StrictMode
Co-authored-by: dan <dan.abramov@gmail.com>
3 years ago
dan
5187ed6bbd
[Beta] You Might Not Need an Effect ( #4766 )
3 years ago
dan
f7f92b88e9
[Beta] useReducer API ( #4441 )
3 years ago
dan
0209e1b5be
[Beta] Reorder API sections ( #4328 )
* Reorder API pages
* Tweaks
3 years ago
Dan Abramov
85e3fcf89c
More separators
3 years ago
dan
269579937e
[Beta] Mention batching in useState ( #4318 )
* [Beta] Mention batching in useState
* Fix up link
* Tidy it up
3 years ago
Xuan Huang (黄玄)
03f232346e
[Beta] Use "Parameters" as titles? ( #4314 )
Taking examples of [MDN](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask ) or [Swift](https://developer.apple.com/documentation/swift/1541053-print ), the name used in signatures (assuming this name will be used by type defs like in TS and [Flow](https://github.com/facebook/flow/blob/main/lib/react.js#L343 )) is probably more often called as "Parameters".
I don't have a strong opinion on this since the distinction are minor and often confusing, but it looks a bit unfamiliar to me as titles. I think use "arguments" interchangeably in other part of writing is fine otherwise it's too much of a mental burden.
3 years ago
Strek
d7dfc5d203
Fix typo ( #4311 )
3 years ago
Sophie Alpert
edac1430f2
[beta] Tweak usestate.md ( #4310 )
Hopefully people know you can do things other than render it but most of our examples have it in the JSX directly, so it might help to be explicit.
3 years ago
dan
7d615adec3
[Beta] useState Troubleshooting ( #4309 )
* [Beta] useState Troubleshooting
* Tweaks
* tweak
3 years ago
Dan Abramov
ea824c610d
More tweaks
3 years ago
Sophie Alpert
a4796b7a38
[beta] Don't call it "derived state" ( #4301 )
I propose that "storing information from previous renders" sounds less like a _cool thing_ and also more clearly describes the rare cases this pattern is for.
3 years ago
Humberto
b86f35d87a
docs: fix typo in useState Adjusting derived state section ( #4300 )
3 years ago
Sophie Alpert
5d2a4e369a
[beta] Push people away more from setting state in render ( #4299 )
* [beta] Push people away more from setting state in render
* Backticks
3 years ago
Dan Abramov
6ebae122a4
Rm unused
3 years ago
Dan Abramov
77af71e359
tweak
3 years ago
Dan Abramov
b06f63219c
Clarify
3 years ago
Dan Abramov
12ca0d4327
Mention loops
3 years ago
Dan Abramov
b174aec9a9
Tweak
3 years ago
dan
881e0a0933
[Beta] Document derived state ( #4297 )
* [Beta] Document derived state
* shorten
3 years ago
dan
73d7d13446
[Beta] Move /reference -> /apis ( #4294 )
* [Beta] Move /reference -> /apis
* come on
* Update CONTRIBUTING.md
* Update sidebarReference.json
3 years ago
dan
001b1f021b
[Beta] useState API: Best of the both words? Haha just kidding... Unless?... ( #4284 )
* Dry version
* Here we go again
* Recreation lol
* Some tweaks (#4285 )
* tweaks
* edit
Co-authored-by: Sophie Alpert <git@sophiebits.com>
3 years ago
dan
e6b843bb84
[Beta] Change useState structure, add examples ( #4276 )
* [Beta] Change useState structure, add examples
* Simpler language
* Nix when not to use it
3 years ago
dan
75db8f2c36
[Beta] Rename TaskBoard -> TaskApp in examples ( #4271 )
* [Beta] Rename TaskBoard -> TaskApp in examples
* Update another page
* Update another page
* Update another page
* Update another page
3 years ago
dan
38057903ec
[Beta] Reorder useState page ( #4265 )
3 years ago
Strek
c6353b9853
chore: fix typo ( #4104 )
3 years ago
Titus
4022f9774b
Use custom ID format that works better with MDX 2 ( #4105 )
* Fix two unicode whitespaces which are invalid
* Use custom ID format that works better with MDX 2
* Fix sebastian
* remark-slug as dev dep
3 years ago
Alexey Pyltsyn
e206d8cdf1
Set page layout dynamically ( #4084 )
4 years ago
Alexey Pyltsyn
0b7fd7b7a4
Add git hook to generate headings ids ( #4043 )
* Add git hook to generate headings ids
* Fixes "Analyze Bundle" workflow
4 years ago
Rachel Nabors
981db3397e
Initial check-in of new React docs and website
Co-authored-by: Dan Abramov <dan.abramov@me.com>
Co-authored-by: Sylwia Vargas <sylwia.vargas@gmail.com>
Co-authored-by: Dan Lebowitz <dan.lebo@me.com>
Co-authored-by: Razvan Gradinar <grazvan@fb.com>
Co-authored-by: Jared Palmer <jared@palmer.net>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Dustin Goodman <dustin.s.goodman@gmail.com>
Co-authored-by: Rick Hanlon <rickhanlonii@gmail.com>
Co-authored-by: Maggie Appleton <maggie.fm.appleton@gmail.com>
Co-authored-by: Alex Moldovan <alex.n.moldovan@gmail.com>
Co-authored-by: Ives van Hoorne <ives.v.h@gmail.com>
Co-authored-by: Brian Vaughn <bvaughn@fb.com>
Co-authored-by: Dmitri Pavlutin <dpavlutin@gmail.com>
4 years ago