Commit Graph

28 Commits

Author SHA1 Message Date
dan
d483aebbac [Beta] cloneElement API (#5194) 2022-10-19 20:13:48 +01:00
dan
06ab241633 [Beta] Children API (#5163)
* [Beta] Children API

* tweak

* wip
2022-10-07 19:46:50 +01:00
dan
9af5d8df69 [Beta] useImperativeHandle API (#5157) 2022-10-05 18:27:58 +01:00
dan
f24bc196f4 [Beta] createElement API (#5154) 2022-10-05 01:38:07 +01:00
dan
440741dde2 [Beta] isValidElement API (#5152) 2022-10-04 23:17:31 +01:00
dan
8379534345 [Beta] useId API (#5150) 2022-10-04 14:02:36 +01:00
Arati Chilad
7de3a0bed7 [Beta] Added documentation for React.createFactory (#5120)
* Added documentation for React.createFactory

* Update beta/src/content/apis/react/createFactory.md

Co-authored-by: Strek <ssharishkumar@gmail.com>

* minor editorial updates (#2)

* Update createFactory.md

* Update createFactory.md

* edits

Co-authored-by: Strek <ssharishkumar@gmail.com>
Co-authored-by: Holly Sweeney <77758406+holly1238@users.noreply.github.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-10-04 05:11:13 +01:00
dan
8ae813f05c [Beta] useEffect API (#5103)
* [Beta] useEffect API

* tweaks

* tweak

* add a link

* wip

* keep guide stuff to guides

* moar

* meh
2022-09-29 03:57:48 +01:00
David McCabe
8d63e0d219 [beta] Added memo API reference page (#5059)
* Create Fragment API reference page

* Minor formatting changes

* Create memo API reference page

* [beta] Dan's suggestions for memo

* Update beta/src/content/apis/react/memo.md

Co-authored-by: Strek <ssharishkumar@gmail.com>

* edits

Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
Co-authored-by: Strek <ssharishkumar@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-15 21:15:27 +01:00
dan
954ef33745 [Beta] lazy API (#5069) 2022-09-15 20:13:51 +01:00
Andrew Clark
5ceec201ae [Beta] Initial API doc for Suspense (#4955)
* [Beta] Initial API doc for Suspense

This doesn't include everything but I think it's good enough for
a start.

I didn't add any interactive examples yet because I want to use the
`use` API, so I'll wait until that's documented.

* edits

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-15 19:41:14 +01:00
dan
ec0292bd25 [Beta] forwardRef API (#5068)
* Initial forwardRef draft

* more info

* more link

* oops

Co-authored-by: Arati Chilad <58401542+arati-1@users.noreply.github.com>
2022-09-15 17:54:59 +01:00
dan
651d31ff6f [Beta] Fragment edits (#5067)
* [Beta] Fragment edits

* Add some links
2022-09-15 13:23:24 +01:00
Ricky
fd46d48c05 [beta] Add flushSync docs (#4930)
* [beta] Add flushSync docs

* tweaks

* tweaks

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-15 12:37:48 +01:00
dan
6001def102 [Beta] useCallback (#5061) 2022-09-14 05:27:13 +01:00
dan
5b8f219a3a [Beta] Split ReactDOM APIs (#5052) 2022-09-13 01:49:50 +01:00
zqran
25171aa052 [Beta] Remove useEvent link (#5035)
* [Beta] Remove `useEvent` link

* [Beta] Add `useEvent` stub page

* [Beta] Update `useEvent` description

* Update useEvent.md

* Alphabetical

Co-authored-by: dan <dan.abramov@gmail.com>
2022-09-10 13:44:25 +01:00
Arati Chilad
fdc12db196 [beta] Added documentation for the useMemo() API reference. (#4928)
* Documentation for useMemo API

* updated

* Update useMemo.md

* Expand useMemo ref

* tweaksg

* oops

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-09 01:55:17 +01:00
David McCabe
f829d8da08 Create Fragment API reference page (#4927)
* Create Fragment API reference page

* Minor formatting changes

Co-authored-by: Dave McCabe <davemccabe@fb.com>
Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
2022-08-25 16:10:40 -04:00
Ricky
caaf3c7245 [beta] Add docs for old hydrate API (#4914)
* Add docs for old hydrate API

* Add suppression example
2022-08-22 13:22:17 -04:00
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>
2022-08-19 12:42:44 -04:00
Ricky
c527d4ec4f [Beta] Add ReactDOM Client APIs (#4909)
* 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

Co-authored-by: dan <dan.abramov@gmail.com>
2022-08-19 11:38:15 -04:00
dan
69f90d25b5 [Beta] createContext API (#4467)
* [Beta] createContext API

* Add to index

* Add a link
2022-03-16 20:46:13 +00:00
dan
f7f92b88e9 [Beta] useReducer API (#4441) 2022-03-16 01:36:52 +00:00
dan
299dad85be [Beta] useContext API (#4378)
* [Beta] useContext API

* Simplify + add

* Tweaks

* Softer

* Tweaks

* Small tweaks
2022-02-24 22:00:02 +00:00
dan
93fdfb2715 [Beta] useRef API (#4345)
* useRef

* useRef API

* Move it down
2022-02-17 19:14:13 +00:00
dan
73d7d13446 [Beta] Move /reference -> /apis (#4294)
* [Beta] Move /reference -> /apis

* come on

* Update CONTRIBUTING.md

* Update sidebarReference.json
2022-02-04 17:42:27 +00:00
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>
2021-10-28 21:33:41 +01:00