* Start of the typescript page
* Intro
* Intro
* Use State
* Use Reducer
* Start of context
* Use Ref
* Events
* Wrap up 1st draft
* Better titles
* Apply suggestions from code review
Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
* Note types/react and types/react-dom, and tone down the usecontext null check
* Feedback
* Given a 2nd run through of the doc
* Apply suggestions from code review
Co-authored-by: Ricky <rickhanlonii@gmail.com>
* Document where `State` is coming from
* Link what inferred types are
* Remove "knock-on"
We already say "cause" which makes "knock-on" a bit redundant
* Move useRef TS usage to useRef reference page
dropped useEffect since there's nothing specific about this hook.
* Add installation section
* Link to framework specific guides
* Edits
* Edit footer
* Rm useRef docs
---------
Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>
* Fix homepage title
Fixed homepage title bug, now the homepage will display the title from `content/index.md` instead of the constant `React`.
* Update index.md
Change title to "React" to keep same
* Add basic reference pages for use client and server
I guess this turned into a bit more of an FAQ but I think it's useful to have this written down in a canonical place.
* Oops, push final tweaks
* Upgrade React and Next
* Fix bug in useNestedScrollLock
I guess refs get disconnected before passive effect cleanup runs. useLayoutEffect would also fix it but maybe this is better.
* Add accessibility note to interactivity section in the new React docs
* Add a11y note to Responding to Events section
* Update responding-to-events.md
---------
Co-authored-by: dan <dan.abramov@gmail.com>
Mounting with Suspense and Offscreen can happen multiple times. This removes some wording that implies a that effects / lifecycle hooks only happen on first mount.
The sentence reads:
In this solution, two separate conditions are used to insert a space between then name and the importance label.
It should read:
In this solution, two separate conditions are used to insert a space between the name and the importance label.