Commit Graph

1004 Commits

Author SHA1 Message Date
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>
2020-07-26 23:25:28 -04:00
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>
2020-07-24 19:44:56 +01:00
Rafaela Ferro
2bf673bcfb Channel naming was "Stable" instead of "Latest" (#3131) 2020-07-22 13:27:16 +01:00
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
2020-07-20 17:04:59 +01:00
shyamsn00
f3e55c8ce8 Correct grammar in conditional-rendering.md (#3095)
* Correct grammar in conditional-rendering.md

* Correct grammar in content/docs/conditional-rendering.md
2020-07-16 21:39:41 -04:00
Siju Samson
1913f358fc Release Channels page in the docs doesn't have "Previous article" or "Next article" links => Issue Resolved (#3082) 2020-07-04 19:46:20 +01:00
⚡ Saif Al Falah
09ba5458bf Fixing the infinitive (#3032) 2020-06-17 12:48:13 +01:00
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.
2020-06-16 11:59:11 -07:00
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
2020-06-05 17:14:53 -07:00
Siju Samson
29e9867197 [Documentation] [Main concepts: State and Lifecycle] (#2981)
Co-authored-by: R Nabors <rachelnabors@users.noreply.github.com>
2020-05-29 17:31:21 +01:00
Viral-Inc
ad8fc4904c 2 Typos (#2988)
minor
2020-05-29 16:02:01 +01:00
Jack Hsu
f81b909ce9 Add a link to Nx under the Flexible Toolchains section (#2979) 2020-05-22 17:28:39 +01:00
a-oz
4e0e1eb870 Update lists-and-keys.md: eliminate huge space between properties (#2980) 2020-05-19 21:16:19 -07:00
Arif Zuhairi
bc91fe4101 Update cdn-links.html (#2957)
link to next article is wrong. It should be release-channels.html, not hello-world.html
2020-05-09 22:49:27 +03:00
mattc41190
12bae06313 Minor grammar fix (#2881) 2020-04-07 10:27:54 +03:00
Dan Abramov
fa5e6e7a98 Remove misleading example in Forms (#2875)
* Remove misleading example in Forms

* Update forms.md

* Update forms.md
2020-04-02 00:35:24 +01:00
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>
2020-03-31 12:32:11 -07:00
Dan Abramov
fae6d6b2eb Oops 2020-03-30 16:05:35 +01:00
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>
2020-03-30 15:01:54 +01:00
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>
2020-03-30 16:47:52 +03:00
Ruphaa Ganesh
7e4f503d86 Remove comma from the portal snippet example (#2852) 2020-03-21 20:05:47 +03:00
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.
2020-03-16 16:47:13 +03:00
Dan Abramov
b3c7540a10 Update building instructions 2020-03-14 13:34:15 +00:00
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
2020-03-12 13:24:06 +00:00
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>
2020-03-10 10:37:44 +00:00
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>
2020-03-09 20:39:04 +00:00
JuanMa
56cea09a36 docs(render-props): examples improvement suggestion (#987) 2020-03-09 19:41:27 +00:00
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>
2020-03-09 19:33:56 +00:00
Andy
c44f4e577d Use const for ref in functional component docs (#1129)
Co-authored-by: Sunil Pai <threepointone@fb.com>
2020-03-09 18:42:08 +00:00
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".
2020-03-09 18:30:53 +00:00
Stephanie
7611c776fc Remove event from arrow function example (#1542) 2020-03-09 16:24:44 +00:00
Toru Kobayashi
331eb9db01 remove a reference to fbjs from codebase overview (#1806)
* remove a reference to fbjs from codebase overview

* Update codebase-overview.md

Co-authored-by: Sunil Pai <threepointone@oculus.com>
2020-03-09 15:40:40 +00:00
Sai Ram Kunala
348a5b2888 add suffix / to example url (#1861)
was inconsistent across examples
2020-03-09 15:27:31 +00:00
Amandeep Singh
fb382ccb13 Update render-props.md (#1940) 2020-03-09 15:02:50 +00:00
Carl A Lewis
6c108015ae Update code-splitting.md (#1972)
Added some clarity.
2020-03-09 14:54:30 +00:00
Raj Nigam
79d33dfe6e unused React import for hooks example (#1979)
I believe this was just from a copy/paste from the JSX example
2020-03-09 14:49:48 +00:00
shawn
3140018914 Update getting-started.md (#1991) 2020-03-09 14:40:52 +00:00
Sunil Pai
30749ed0b2 Revert "Revert "added stackblitz to playground (#2759)" (#2820)" (#2821)
This reverts commit 87b4a4fac7.
2020-03-09 14:17:59 +00:00
Myron Yeung
ba0818beab Fix ref creation in CustomTextInput component (#2072)
Change React.createRef() to useRef(null)
2020-03-09 14:06:19 +00:00
Gisli Nielsen
63a06196ba Changed what a component compiles to. (#2075) 2020-03-09 14:05:24 +00:00
Himanshu Pathak
c477cd79c8 animation plugin moved (#2091)
`react-addons-css-transition-group` moved to `react-transition-group`
2020-03-09 14:01:38 +00:00
Abel Regalado
be8775d4b9 [docs] Add missing events to docs/events page (#2123)
* [docs] Add missing evens to docs/events page

Added missing `onReset` event to Form Events –– (https://reactjs.org/docs/events.html#form-events)
Created Generic Events subsection, and added `onError` & `onLoad` events –– (https://reactjs.org/docs/events.html#generic-events)

Based on @sophiebits suggestion in following thread:
https://github.com/facebook/react/issues/1718#issuecomment-122622933

* [docs] Add event subsection to #supported-events

Added Generic Events subsection under Supported Events (https://reactjs.org/docs/events.html#supported-events)
2020-03-09 13:58:23 +00:00
tiffanymonroe
efeaea0606 added commas for clarification and grammar (#2133) 2020-03-09 13:54:51 +00:00
corinty
bc060f5edd Moved a bracket in the setState function example (#2164) 2020-03-09 13:52:38 +00:00
Vincent
b4e7437ceb Link to relevant forwardRef docs (#2229) 2020-03-09 13:48:48 +00:00
Rajinder Yadav
a35a95fb4b Handling Multiple Inputs (#2260)
Text says to use "__name__" but code shows usage of "__type__".
2020-03-09 13:45:57 +00:00
Steve Dodier-Lazaro
2c8f5695ba Add reference to persist to SyntheticEvent's API (#2274)
Since persist() is referred to in the doc as a method for disabling event pooling, that must mean it's part of the SyntheticEvent API.

I'm proposing to state it more explicitly so that there's no doubt for newcomers like me whether it is the SyntheticEvent or the actual JS event that has the method.
2020-03-09 13:41:13 +00:00
Arshita Kakkar
5fc494752c Doc error (#2301)
Changed Line 94- You can't use Hooks *inside* of a class component, but you can definitely mix classes and function components with Hooks in a single tree.  
to 
"You can't use Hooks *inside* a class component, but you can definitely mix classes and function components with Hooks in a single tree. "
2020-03-09 13:35:18 +00:00
Arshita Kakkar
cc007751ca Documentation correction (#2304)
* Documentation error

Line 290 - ". However, instead we recommend to split state into multiple state variables based on which values tend to change together."
Both 'however' and 'instead' are contrasting words and only one of them should be used. 
Either "Instead we recommend to split state into multiple state variables based on which values tend to change together." OR "However, we recommend to split state into multiple state variables based on which values tend to change together."
Updated the sentence.

* Updated 'however' to 'instead'

Line 290 updated to - 
Instead, **we recommend to split state into multiple state variables based on which values tend to change together.**

* Update hooks-faq.md

Co-authored-by: Sunil Pai <threepointone@fb.com>
2020-03-09 13:34:04 +00:00
Conrad Beach
257a7dbca3 Fix Typo in Lifting State Up Docs (#2395)
There's a line in the document that says:
"When it previously rendered, the `Calculator` has specified that"

The sentence is using a present tense verb ("has"), but the statement is in the past tense.

I think "When it previously rendered, the `Calculator` had specified that" would be correct.
2020-03-09 13:24:47 +00:00