Mustafa Mansour
8a914c9367
Update addons-animation.md ( #3151 )
Fix key value in code snippet.
4 years ago
Thai Pangsakulyanont
eaa502f750
Fix wrong highlighted line numbers in nested Profiler example ( #3218 )
4 years ago
Alexey Pyltsyn
d4e2730148
Use relative links
4 years ago
Chris Wilson
ec07e80be0
Remove prev/next links from the Advanced Guide ( #3269 )
4 years ago
李鸿章
b24cabac64
Code the `null` and `undefined` values ( #3203 )
4 years ago
Evgeniy Boreyko
657658aa1f
Fix React Native Testing Library link ( #3240 )
4 years ago
Toru Kobayashi
da8ef8b0f6
Explain where act comes from ( #3237 )
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
4 years ago
kamlesh tajpuri
25cc703d1f
Updating the docs to reflect the fact that React.memo can be used wit… ( #3159 )
* Updating the docs to reflect the fact that React.memo can be used with both class and functional components
* removed misleading para
4 years ago
MinYuan
f673d85616
Add `useLayoutEffect` to those hooks with deps ( #3232 )
4 years ago
Shihabudheen US
cd5b2ad74f
Prefixing `unstable_` ( #3226 )
Prefixed `unstable_` for the experimental ReactDOM.createRoot().
4 years ago
Eduard Poracký
d16f1ee795
Add next and previous links to Advanced Guides ( #540 )
Co-authored-by: Eduard Poracký <eporacky@trionyx.sk>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
4 years ago
Sebastian Silbermann
6a1e325098
Reference select guide instead of documenting selected attribute ( #3224 )
Co-authored-by: 宋文强 <pwnn@users.noreply.github.com>
4 years ago
Edgar Muentes
860a510d38
Clarify that synthetic events aren’t exactly the same as native events ( #866 )
Co-authored-by: Edgar Muentes <Edgar.Muentes@aexp.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
4 years ago
Eduard Rastoropov
b9c59963ff
Add possible element types that accept propTypes ( #386 )
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
4 years ago
Alireza Ayinmehr
e2c2fe2642
Sync Reservation Component with CodePen example ( #3221 )
4 years ago
PhistucK
c64ee93706
Mentioned that `value` is supported in `<select>` ( #3217 )
4 years ago
HKalbasi
fb71011c30
Replace old babel plugin link with new one ( #3215 )
4 years ago
Dan Abramov
1cc8aa3f03
Remove outdated comparison
4 years ago
石发磊
f21896aee4
missing export default for contact.js ( #3209 )
4 years ago
epsi
63332462bb
Update hooks-overview.md ( #3110 )
* Update hooks-overview.md
Changed 'is' -> 'are'
* Update content/docs/hooks-overview.md
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
5 years ago
Dowen Robinson
24f47fbc1e
Removed deadlink from Event System section and added correct links ( #3136 )
* Removed deadlink from Event System section and added correct links
* Changed wording of Event System section and removed react-native events link
* Update codebase-overview.md
Co-authored-by: Dowen Robinson <drobinson@ad.accelclaims.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
5 years ago
Rafaela Ferro
2bf673bcfb
Channel naming was "Stable" instead of "Latest" ( #3131 )
5 years ago
Elia Maino
6b45b652d6
Update urls of tools examples ( #3123 )
* Update urls of tools examples
Some urls are outdated, they still redirect to the correct page but for example the info you can see on the bottom left of the page to know which page you're about to visit when hovering the link is wrong.
- https://github.com/facebookincubator/create-react-app -> https://github.com/facebook/create-react-app
- https://github.com/zeit/next.js/ -> https://github.com/vercel/next.js
* Provide urls to tools websites instead of GH repos
5 years ago
shyamsn00
f3e55c8ce8
Correct grammar in conditional-rendering.md ( #3095 )
* Correct grammar in conditional-rendering.md
* Correct grammar in content/docs/conditional-rendering.md
5 years ago
Siju Samson
1913f358fc
Release Channels page in the docs doesn't have "Previous article" or "Next article" links => Issue Resolved ( #3082 )
5 years ago
⚡ Saif Al Falah
09ba5458bf
Fixing the infinitive ( #3032 )
5 years ago
Cory House
d58e9d0ed6
Update object spread syntax description ( #3036 )
Removed reference to it being experimental. Changed link to MDN. Mentioned version where it was added.
5 years ago
Ricky
6bb0d33e0c
Clarify language in components-and-props.md ( #3020 )
* Clarify language in components-and-props.md
This is a nit for a few reasons:
- The point that extracting a component that "is complex enough on its own" means that it's not necessarily reusable.
- Extracting the components listed in the same sentence (e.g. App) are not necessarily reusable.
- This ends the section "Extracting Components" with a reference to extraction instead of re-usability.
- This delimits extracting into a separate component from creating a re-usable component.
* Update components-and-props.md
* Update components-and-props.md
5 years ago
Siju Samson
29e9867197
[Documentation] [Main concepts: State and Lifecycle] ( #2981 )
Co-authored-by: R Nabors <rachelnabors@users.noreply.github.com>
5 years ago
Viral-Inc
ad8fc4904c
2 Typos ( #2988 )
minor
5 years ago
Jack Hsu
f81b909ce9
Add a link to Nx under the Flexible Toolchains section ( #2979 )
5 years ago
a-oz
4e0e1eb870
Update lists-and-keys.md: eliminate huge space between properties ( #2980 )
5 years ago
Arif Zuhairi
bc91fe4101
Update cdn-links.html ( #2957 )
link to next article is wrong. It should be release-channels.html, not hello-world.html
5 years ago
mattc41190
12bae06313
Minor grammar fix ( #2881 )
5 years ago
Dan Abramov
fa5e6e7a98
Remove misleading example in Forms ( #2875 )
* Remove misleading example in Forms
* Update forms.md
* Update forms.md
5 years ago
Gordey
7551fdf2df
Add ajax with hooks example ( #2803 )
* Add ajax with hooks example
* Add comment about empty deps in useEffect hook
* grammar
Co-authored-by: Alex Krolick <alexkrolick@users.noreply.github.com>
5 years ago
Dan Abramov
fae6d6b2eb
Oops
5 years ago
Sebastian Silbermann
9e5a358cb2
Explain how StrictMode affects function components and hooks ( #2515 )
* Update strict-mode.md
* Fix links
* docs: specify which kind of function component
* Update content/docs/strict-mode.md
* Update strict-mode.md
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
5 years ago
Nhan Doan
c2eb543b52
Update outdated URL in code-splitting.md ( #2870 )
* Update outdated URL
Next.js Dynamic Import.
* Update code-splitting.md
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
5 years ago
Ruphaa Ganesh
7e4f503d86
Remove comma from the portal snippet example ( #2852 )
5 years ago
Esteban Luchsinger
2ef0ee1e4f
Reorganize information about the plugin ( #2835 )
Having the information that the plugin is already installed by default after the installation instructions is probably wasting a lot of people's time. Moving it up probably avoids multiple installs of the plugin.
5 years ago
Dan Abramov
b3c7540a10
Update building instructions
5 years ago
Vishal Jagtap
be17215d86
Updated React and React Native links ( #2824 )
* DOC: Updated the React Native Home URL
* Blog: Updated the React URL Link
* Relative link added
5 years ago
Jonathan Chhabra
617021f886
Make React.memo documentation more clear ( #2762 )
* Make React.memo documentation more clear
* Update reference-react.md
Co-authored-by: Sunil Pai <threepointone@fb.com>
5 years ago
David Beitey
d1c1c30ea0
Clarify preferred "props default to true" expr ( #495 )
* Clarify preferred "props default to true" expr
The current text is ambiguous without reading further into the paragraph -- until I re-read this text, I was trying to avoid both types of syntax because it seemed to imply that it wans't recommended (eg "props default to true" --> "we don't recommend using this").
* Update jsx-in-depth.md
Co-authored-by: Sunil Pai <threepointone@oculus.com>
5 years ago
JuanMa
56cea09a36
docs(render-props): examples improvement suggestion ( #987 )
5 years ago
Mendel Bakaleynik
98d8c10769
Minor grammar edit (syntactic -> syntactical). ( #1043 )
* Minor grammar edit (syntactic -> syntactical).
* Update handling-events.md
Co-authored-by: Sunil Pai <threepointone@oculus.com>
5 years ago
Andy
c44f4e577d
Use const for ref in functional component docs ( #1129 )
Co-authored-by: Sunil Pai <threepointone@fb.com>
5 years ago
Paul Henschel
6f322a438a
Update conditional-rendering.md ( #1175 )
The ternary syntax using parenthesis was an unconventional prettier invention, going out of its way to format react ternaries differently from normal ternaries (if i remember correctly, because vim users had trouble re-formating without a mouse). If they made the right decision or not is one thing, but the additional noise could mislead beginners here, thinking they have to add more characters to make a simple 2-slot ternary, or that it is a "react thing".
5 years ago
Stephanie
7611c776fc
Remove event from arrow function example ( #1542 )
5 years ago