Commit Graph

5954 Commits

Author SHA1 Message Date
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
Dan Abramov
9eca28fc79 Tweak header 2022-12-14 03:30:45 +00:00
Ricky
c2566a56c0 [beta] Add findDOMNode (#5357)
* [beta] Add findDOMNode

* info

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-12-14 03:25:13 +00:00
Ricky
bad27d1a04 [beta] Add StrictMode docs (#5340)
* [beta] Add StrictMode docs

* More usages

* Remove WIP

* Add legacy string refs

* Add legacy context

* stuff

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-12-13 20:02:19 +00:00
Mihail (Михаил)
ca61341e6f [Beta] Fixed a dead link in useTransition.md (#5356)
In the paragraph:
```
You can wrap an update into a transition only if you have access to the set function of that state. If you want to start a transition in response to some prop or a custom Hook return value, try useDeferredValue instead.
```

The "useDeferredValue" link pointed to "usedeferredvalue" which is an invalid URL, this commit fixes that.
2022-12-13 04:08:07 +00:00
Toru Okugawa (Tanaka)
cfa9498466 Fix link to new URL (#5281) 2022-12-12 18:51:04 +00:00
ashrene-roy
6031b0005f [beta] Fix Chai recipe in docs (#5342)
* [beta] Fix Chai recipe in docs

* Cut down recipe to 3 points

* Adjust explanation

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-12-12 18:49:03 +00:00
Dan Abramov
45b1068b69 [Beta] Fix some code blocks 2022-12-12 18:32:01 +00:00
dan
c68c36f73b [Beta] Profiler API (#5355) 2022-12-12 17:57:10 +00:00
dan
8bf3b48576 [Beta] startTransition API (#5354) 2022-12-12 17:06:28 +00:00
dan
c883f623d5 typo 2022-12-11 03:31:18 +00:00