Commit Graph

775 Commits

Author SHA1 Message Date
Gavin Elster
dda5b49f45 Swap word order (#2020)
Figure this was a typo
2019-05-21 21:22:58 +03:00
Niklas Mollenhauer
e12c973cf1 Update core-js includes (#2007)
The path seem to have changed in the latest `core-js` package. https://github.com/zloirock/core-js/tree/master/packages/core-js
2019-05-18 14:27:44 +03:00
Matthew
8e6343b5a6 Fix broken webpack production guide link in "Optimizing Performance" page. (#2011) 2019-05-18 14:24:50 +03:00
Misha Moroshko
b3d4fe5efb Keep hook links consistent (#1323) 2019-05-18 14:22:00 +03:00
Tajammul Pasha
2d664c178a fixed svelte-js broken link (#2010) 2019-05-17 21:53:35 -07:00
Brent
06deefa567 Update hooks-effect.md (#2005) 2019-05-16 13:35:06 -07:00
Aaron Mast
d2d2ee420d Fix useReducer example (#1992) 2019-05-14 10:10:25 +03:00
Alex Krolick
c8703314dd update faq on perf with function props (#1994) 2019-05-13 22:46:23 -07:00
Kent C. Dodds
b91049c057 inputs array > dependencies array (#1957)
* inputs array > dependencies array

I think initially this was referred to as the "inputs array" in the docs, then it was changed to the "dependencies array" everywhere except it looks like a few were missed.

* inputs array > dependencies array

I think initially this was referred to as the "inputs array" in the docs, then it was changed to the "dependencies array" everywhere except it looks like a few were missed.
2019-05-09 10:35:27 -07:00
Peng Jie
a211417f66 fix(terms): treeshaking -> tree shaking (#1977) 2019-05-07 14:47:32 +03:00
Dan Abramov
ad6687e25e Simplify the observer example 2019-05-06 03:05:28 +01:00
0xnoob
b1691780aa previous page link not linking to previous page, but to the second last. (#1959)
* previous page link is not linking to the previous page, but to the second last.

The example code is on both, the `Introducing Hooks` as well as `Hooks at a Glance` page, but the linked page is the `Introducing Hooks` and I think that's the right one (the `Hooks at a Glance` page probably got added later?).

Not sure about the phrasing so, having "introduce" twice in one sentence ...

* Update content/docs/hooks-state.md

Co-Authored-By: 0xnoob <49793844+0xnoob@users.noreply.github.com>


Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2019-05-03 15:05:10 +03:00
0xnoob
8c39db7f07 Broken anchor link in Advanced Concepts. (#1951)
The link should probably either go to directly to the beginning of main concepts (which is what my proposes change does), or to the anchor  -tag of "Step-by-Step Guide" (#step-by-step-guide). There is no other link in the article which refers to another anchor-tag, that's why I chose to directly link to the main-concepts.
2019-04-28 23:36:09 +03:00
Alexey Pyltsyn
066479b69a Generate ids for new headers 2019-04-27 22:13:12 +03:00
ANOTHER GUY
6bc6e7b141 Fix the link so that it navigates to anchor rather (#1816)
* Fix the link so that it navigates to anchor rather

* Update create-a-new-react-app.md
2019-04-24 09:43:11 +03:00
Camilo Giraldo
f4a67ffdfb Fix for 1874 broken link (#1902) 2019-04-24 09:39:54 +03:00
Lokesh Kumar
a2d69c68ae Update create-a-new-react-app.md (#1400)
Fixes typo flexiblity
2019-04-24 09:19:42 +03:00
renato
621f4c87bd lowercase link to React.createElement section (#1509) 2019-04-24 09:14:39 +03:00
Quentin Bahers
dcfc0bbb10 Fix the "Releases" link in the "Getting Started" page (#1530) 2019-04-24 09:12:33 +03:00
José Antonio Chio
7be4caf210 Update ESLint Plugin installation command (#1758) 2019-04-24 09:02:43 +03:00
Sunil Pai
2aa3c54e08 Update addons-shallow-compare.md (#1924) 2019-04-15 09:44:46 -07:00
Wojtek
59c3c0a155 Fix explanation of the useState example in 'Hooks API Reference' page (#1881) 2019-03-29 12:05:00 -07:00
Saransh Kataria
d0f2db967a removed sentence since functions can have state (#1878)
With introduction of hooks, that statement is not valid anymore
2019-03-28 15:51:37 -07:00
pavan
6faeeb809f Adding immer in the list of immutable libraries (#1839)
* Adding immer in the list of immutable libraries

* Update optimizing-performance.md
2019-03-26 05:58:15 +00:00
Saransh Kataria
e744030ad0 removed line as functions can have state now too (#1783)
* removed line as functions can have state now too

* removed this.setState line from docs
2019-03-25 12:41:48 -07:00
Dan Abramov
b1bc193dba Document useContext bailout strategy (#1848) 2019-03-19 22:09:21 +00:00
Dan Abramov
ac4aa6546e Add more explanations to Hooks API page (#1845)
* Add more explanations to API page

* static

* add info about useLayoutEffect

* Update content/docs/hooks-reference.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* nits

* nit
2019-03-19 17:12:44 +00:00
Dan Abramov
806da34988 Add a DOM measurement recipe to Hooks FAQ (#1843)
* Add a DOM measurement recipe to Hooks FAQ

* Update content/docs/hooks-faq.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* Update content/docs/hooks-faq.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>
2019-03-19 15:28:18 +00:00
Arthur Denner
877431a60b Fix previous article on hooks-effect.md (#1802)
Hi! 👋 

This PR only fixes the `Previous article` link on [this page](https://reactjs.org/docs/hooks-effect.html).

Once this get merged, do I need to open a similar PR in each one of the translation repos?
2019-03-17 14:08:17 -07:00
Dimitar Nestorov
40bbbd5b10 Updating useMemo docs (#1796)
https://codesandbox.io/s/4x68k8nrw
2019-03-14 14:49:11 +00:00
Manuel Bieh
3e489fc2f9 Fixing incorrect value for eslint rule (#1824)
The name for the "warning" level in ESLint is `warn` not `warning` (https://eslint.org/docs/user-guide/configuring#configuring-rules)
2019-03-13 17:09:09 -07:00
Dan Abramov
352c3ff01f Fix example 2019-03-13 18:24:10 +00:00
Dan Abramov
877b189758 Fix wording 2019-03-13 15:46:05 +00:00
Dan Abramov
474de38b2c Use another example 2019-03-13 15:42:01 +00:00
Dan Abramov
110a318d1e Link to a data fetching demo 2019-03-13 15:38:51 +00:00
Dan Abramov
2cd4d0cf5d Add more info to FAQ about deps (#1815)
* Add more info to FAQ about deps

* Update content/docs/hooks-faq.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* Update content/docs/hooks-faq.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* Update content/docs/hooks-faq.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* Update content/docs/hooks-faq.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* Update content/docs/hooks-effect.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* tweaks

* tweak
2019-03-13 13:59:42 +00:00
Mark Murray
d6d30b6c35 Rename App class component to Counter (#1739) 2019-03-09 00:27:44 -08:00
lsdsjy
acb2fd4330 Update render-props.md (#1776)
Update React Router render func URL
2019-03-09 00:21:51 -08:00
Arvindeva Wibisono
cda11db7eb Fixed typo (#1786)
'minifed' -> 'minified'
2019-03-05 11:34:38 -08:00
Raed CHAMMAM
8803c6375b Fix CRA code splitting link (#1765) 2019-03-02 23:21:23 -08:00
Adam Markon
c6b6dc2d56 Stop calling function components stateless (#1760)
These docs still refer to function components as "stateless function components" despite the fact that function components aren't necessarily stateless (anymore). The docs shouldn't use this outdated terminology anymore. 

I left the "stateless" in the link to avoid breaking existing links to these docs but can remove if keeping links valid isn't a priority.
2019-02-28 14:31:52 +00:00
Gasim Gasimzada
8e805d7995 Add missing avatarSize in "Before you use context" to text and code (#1737) 2019-02-27 14:40:09 -08:00
santa claus
aa8adc49a7 Update getting-started.md >> "Online Playgrounds" (#1733)
adding a hello world template on glitch.com to the list of online playgrounds 🎏
2019-02-23 13:15:32 +00:00
Dan Abramov
f99cc73499 Revert "Small typo fix" (#1738)
* Revert "Small typo fix"

* Update hooks-faq.md
2019-02-23 11:29:51 +00:00
Alexey Pyltsyn
d615c5b7bc Merge pull request #1317 from tusharkhatiwada/typo-hooks-faq
Small typo fix
2019-02-23 00:32:58 +03:00
Alexey Pyltsyn
737d00783c Merge pull request #539 from Ediiik/patch-1
Fix typo
2019-02-23 00:23:35 +03:00
Alexey Pyltsyn
1a625b7b69 Merge branch 'master' into httpsify 2019-02-22 00:12:48 +03:00
Alexey Pyltsyn
abf2c97103 Merge pull request #1637 from prashant-andani/master
Add Https for javascript.info link
2019-02-22 00:08:19 +03:00
David Svetlecic
7b5f4cf604 Add 'you' 2019-02-20 16:38:42 -06:00
Saransh Kataria
fb3327f109 Merge pull request #1574 from evolveris/patch-1
Fix typo
2019-02-20 07:32:22 -08:00