Commit Graph

6064 Commits

Author SHA1 Message Date
Dan Abramov
e8a64f67a3 Fix link 2023-01-05 21:45:55 +00:00
Branimir Rijavec
46b5a69d72 Fix typo in tutorial-tic-tac-toe.md (#5438) 2023-01-05 20:12:46 +00:00
derrekcoleman
0eba7f671e Fix typo in tutorial-tic-tac-toe.md (#5436) 2023-01-05 11:34:22 +01:00
Sebastian Silbermann
e77ba1e903 [beta] Fix inconsistent anchor link on flushSync page (#5429)
Could not find any usage of `create-root` in the docs. 
This makes existing links effectively 404 with regards to the anchor but this is a beta after all.
2023-01-01 16:17:19 +01:00
Pascal Fong Kye
9cd0db0a40 fix(typo): add missing closing character (#5415) 2022-12-29 11:12:48 +01:00
dan
f741a42bac Fix #5412 2022-12-29 01:48:34 +00:00
Dominic
33c4d58f99 Fix 404 for json file (#5403) 2022-12-29 01:41:18 +00:00
Rahul Rao
c7efb5ccf0 Minor grammatical correction (#5407)
Fixing a minor grammatical correction/typo on the beta docs useImperativeHandle API reference page.
2022-12-29 01:39:37 +00:00
Sagar Acharya
afb7d7ab2f Fixes a typo (#5411)
[Suspense](https://beta.reactjs.org/reference/react/Suspense) page has header
 `<Suspense>` lets you displays a fallback until its children have finished loading.
Which should have been:
`<Suspense>` lets you display a fallback until its children have finished loading.
2022-12-29 01:38:29 +00:00
Filipe Névola
bcf7759402 [Beta] Fixes typo in editor-setup page (#5413) 2022-12-28 16:45:15 +00:00
Rahul Rao
2a3bcb6c00 Minor grammatical correction (#5406)
Adding a minor grammatical correction to the useImperativeHandle hook API reference markdown page.
2022-12-27 12:20:38 +05:30
Travis Potter
45e4b521cd Fixed property "value" typo'd as "values" (#5404) 2022-12-27 01:12:38 +00:00
dan
ddde7e8fdc [Beta] Sidebar groups (#5402) 2022-12-26 12:43:49 +00:00
Pascal Fong Kye
20252cbb57 fix(typos): some small typos (#5401)
use name instead of title as in the data provided
2022-12-26 12:42:40 +00:00
Dan Abramov
4b68508440 [Beta] Misc edits 2022-12-25 22:08:19 +00:00
Dan Abramov
8d51b16431 [Beta] Remove some duplicated banners 2022-12-25 21:45:54 +00:00
Dan Abramov
3473846631 Fix above/below 2022-12-25 21:06:35 +00:00
Dan Abramov
88e689ef16 Always link to Usage for consistency 2022-12-25 21:05:39 +00:00
dan
c79307666b [Beta] APIs -> Reference (#5400)
* [Beta] APIs -> Reference

* oops
2022-12-25 21:01:34 +00:00
dan
147bab9196 [Beta] Move Reference before Usage (#5399)
* [Beta] Move Reference before Usage

* above -> below
2022-12-25 20:30:20 +00:00
dan
bd9f3ea2cd Typo 2022-12-24 13:54:54 +00:00
Dan Abramov
302fb7af9d Bump the numbers 2022-12-24 13:25:41 +00:00
Matt Carroll
81b5f81f29 [beta] Tic-tac-toe tutorial rewrite (#5352)
* Copy over tutorial from old website

Fixed up MDX syntax (self-closing `<br>` and `<img>`, and one `style`
attribute)

* wip

* more wip

* Move tutorial to be consistent with new beta docs structure

* remove HTML comments causing Vercel rendering issues

* Fixed all fixme's, minor clarity improvments, updated code links to codesandbox

* first half of tutorial re-write draft

* Finish tutorial rewrite draft

* Fix some formatting issues

* Migrate tutorial back to JavaScript to fix Sandpack errors

* Fix minor mistakes, formatting, code bugs, clean up images

* Fix empty board image size

* Fix image size and code highlighting issues

* Incorporate feedback from Dan and Sean

* edits (wip)

* edit

* edits

* Update beta/src/content/learn/tutorial-tic-tac-toe.md

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

* tweak

Co-authored-by: Sophie Alpert <git@sophiebits.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: Strek <ssharishkumar@gmail.com>
2022-12-24 13:23:58 +00:00
Dan Abramov
e2a0f2ebfb [Beta] Remove TOC from short pages 2022-12-24 00:37:20 +00:00
dan
d981e00db8 [Beta] react-dom: Components (#5383)
* <input>

* Fix typo

* tweak

* separate props

* reword

* typos

* compress

* tweaks

* Add more

* more

* shorter

* twk

* more readable

* fix

* oops

* oops

* <textarea>

* <progress>

* <select>, <progress>

* upd

* <option>

* wip common

* wip

* more

* Fix onSelect desc

* index

* stub events

* events

* twk

* all events
2022-12-24 00:31:41 +00:00
Rahul Rao
167603a7ba Making serverUrl a reactive dependency for the provided example. (#5392)
The serverUrl variable should be moved inside the component and can be stored as a state to indicate that it's a reactive variable and will be highlighted as such by the linter. Previously the serverUrl variable was stored outside the component function body thus making it a non-reactive value and so it shouldn't have been highlighted by the linter as a useEffect dependency as shown in the concerned example.
2022-12-24 00:29:34 +00:00
Xiao Chuan
89ad6199ec useTransition add semicolon (#5384) 2022-12-24 00:28:36 +00:00
Rahul Rao
dc4d82b871 Change 'options object' to 'createOptions function' (#5394)
The section under consideration 'Removing unnecessary function dependencies' should use the text 'createOptions function' instead of 'options object' to match the given example correctly.
The 'options object' text is being used correctly for the previous section which talks about 'Removing unnecessary object dependencies' however, it must be updated for this section.
2022-12-24 00:27:52 +00:00
Dan Abramov
39b9599114 Remove stale RFC link 2022-12-23 17:17:08 +00:00
Rahul Rao
ff226557f2 Adding a minor grammatical correction. (#5388)
Proposing a minor grammatical correction on the useEffect API documentation page for triggering an animation example section.
2022-12-23 13:16:23 +01:00
dan
966b7b849f [Beta] Move search outside tabs (#5389) 2022-12-20 20:40:03 +02:00
dan
868d525a74 Update index.md 2022-12-17 16:27:58 +00:00
Dan Abramov
6faa4f51d5 Add missing patch for #5368 2022-12-17 14:58:55 +00:00
dan
5385031b46 [Beta] Fix scroll jumps on navigating to fragments (#5375) 2022-12-17 14:14:54 +00:00
Dan Abramov
c4d2a6da45 [Beta] Reorder example 2022-12-17 04:10:59 +00:00
Dan Abramov
d542994fc2 Typo 2022-12-16 23:45:25 +00:00
dan
119177b847 [Beta] useEvent -> useEffectEvent (#5373)
* [Beta] useEvent -> useEffectEvent

* tweak
2022-12-16 17:11:10 +00:00
dan
84a1085e09 More credits 2022-12-16 15:55:46 +00:00
Dan Abramov
1aadd781e7 Fix copypasta 2022-12-16 15:21:37 +00:00
dan
a8db9c0439 [Beta] useLayoutEffect API (#5372)
* [Beta] useLayoutEffect API

* more

* tweak

* bla
2022-12-16 15:16:24 +00:00
Matheus Marques
a7f42607bd Fix typo (#5371) 2022-12-16 15:16:17 +00:00
dan
add83faad2 [Beta] Highlight <Foo> and <foo> differently (#5368) 2022-12-16 02:31:43 +00:00
dan
24a3e04e1a Fix typo 2022-12-15 19:09:33 +00:00
dan
98bb99e397 Fix typo 2022-12-15 19:09:18 +00:00
dan
3d87a27272 [Beta] useInsertionEffect API (#5364) 2022-12-14 21:39:36 +00:00
Dan Abramov
7a9fe8d748 Wording tweak 2022-12-14 20:22:53 +00:00
dan
596b50c2cc [Beta] Split "Components" and "APIs" (#5363) 2022-12-14 20:13:57 +00:00
dan
3bb6d8c23a [Beta] createPortal API (#5362)
* [wip] createPortal

* createPortal API

* edits

* more

Co-authored-by: Dave McCabe <davemccabe@fb.com>
2022-12-14 18:58:32 +00:00
Abhinandan Wadhwa
06d472dcf0 [Beta] Fixed Semicolon missing in a code snippet. #5337 (#5360)
* [Beta] Fixed Semicolon missing in a code snippet. #5337

* [Beta] Fixed Semicolon missing in a code snippet. reactjs#5337
2022-12-14 14:55:25 +00:00
Dan Abramov
5d651446fc Tweaks 2022-12-14 03:32:54 +00:00