Spen Taylor
201cce9207
[Docs] Replace 'mix in' in PureComponent notes ( #8730 )
* [Docs] Replace 'mix in' in PureComponent notes
* Style nit
8 years ago
Dmitry Zhuravlev-Nevsky
2911b89396
Swap components ( #8735 )
It's better to delare component before using.
8 years ago
Nik Nyby
e079ba4d10
docs: add missing period in shouldComponentUpdate doc ( #8720 )
8 years ago
Bruno Heridet
ca173ef961
docs(hoc): fix typo Rambda → Ramda ( #8712 )
8 years ago
Brandon Dail
55568c8c57
Point all Webpack links to 1.x documentation ( #8697 )
* Point all Webpack links to 1.x documentation
* Add back webpack production guide, add warning
8 years ago
Murtaza Haveliwala
290cfc1afc
Update rendering-elements.md
Updating text to be in sync with sample html
8 years ago
Murtaza Haveliwala
081ba8edbc
Updated hello world explanation message ( #8703 )
Output text in explanation now in sync with code sample
8 years ago
Piotr Czajkowski
095b1ec6f7
"Don't Mutate the Original Component" example and description mismatch ( #8695 )
8 years ago
Piotr Czajkowski
76a149320b
Higher-Order Components docs withSubscription() example fix ( #8694 )
8 years ago
Mateusz Burzyński
54f955de26
[Docs] Fixed anchor links in Animations section ( #8453 )
8 years ago
Van der Auwermeulen Grégoire
3b671d1d1b
Update state-and-lifecycle.md ( #8424 )
* Update state-and-lifecycle.md
Isn't clock state and props the same in this example?
* Clarify
8 years ago
Mojtaba Dashtinejad
62ea0290ed
[docs] Add a note about componentWillReceiveProps ( #8234 )
* Component Lifecycle In Depth documentation
* first steps to improve react component reference
* improved react component reference
- remove the component-lifecycle-in-depth
* add a note for usage of ReactDOM.findDOMNode
* one note on componentWillReceiveProps
* remove old useless images for lifecycle docs
* Tweak wording
8 years ago
Dan Abramov
a1f22dd855
Nitpick: use FB style in doc
8 years ago
gitanupam
a53d2acaf9
Changed webpack's hyperlink ( #8650 )
..to point to 2.x documentation instead of 1.x (and to be consistent with other links on the page)
8 years ago
gitanupam
864a2c76b8
'npm init' needed before installing react via npm. ( #8649 )
* 'npm init' needed before installing react via npm.
I was trying to install react in my django project directory and was getting warnings about package.json not being present. Started this SO post (http://stackoverflow.com/questions/41340909/npm-cant-find-package-json-when-installing-react/41340975#41340975 ) to figure it out. I think it'll be useful to others too if we add it in the documentation itself.
* Tweak instructions
8 years ago
Eric Pitcher
9f3ae7247e
Update conditional-rendering.md ( #8636 )
Stating the fact that component lifecycle methods will still fire as normal even though you return null from the render method.
8 years ago
comerc
e875fa0967
Fix casing typo in jsx-in-depth.md ( #8542 )
8 years ago
Chris
dd5a665d42
update example to use `this.state` ( #8425 )
- In the previous example, the code works even without using bind(this) in the constructor.
- the reason being handleClick doesn't even use `this` and its just calling the global function alert.
- this change make use of this via access this.state.
8 years ago
Liz
081c20f66f
👏 designers are friends, not fodder for jokes ( #8523 )
8 years ago
lucas
ab12949031
Add return to render
8 years ago
Jacob Lamont
68b9b2037c
Update reference-react.md
8 years ago
Andrew Clark
e3d37fdb90
Add a document on higher-order components ( #7869 )
8 years ago
Richard Maisano
4851bd7cec
Add a couple missing SVG tags to DOM Elements docs ( #8383 )
My first contribution to React!
While upgrading a React project, I found some suspect SVG that needed updating, so I dug in after checking the docs. I knew that support for some SVG properties had been added (namely `xmlns` and `xmlnsXlink`), but I noticed them missing from the reference's attribute list. This pull request updates `reference-dom-elements.md` by adding said properties.
8 years ago
Simen Bekkhus
5df573a518
Fix link to `PureComponent` in docs ( #8375 )
8 years ago
Michael Sinov
d00d8c81cd
update react-without-es6.md ( #8351 )
8 years ago
Dan Abramov
9c9ecee640
Minor changes, make it more verbose
8 years ago
Shubheksha Jalan
a409b4df32
Improved sections of state and lifecycle docs
8 years ago
Dan Abramov
5c995eebba
Small nit: add a sentence about readability back
8 years ago
Shubheksha Jalan
448aa90482
Improved some sections of the introducing JSX docs
8 years ago
Dan Abramov
36564ab0fa
Nits
8 years ago
Kevin Lacker
ba8004f607
add link to useful doc
8 years ago
Dan Abramov
d7e37c6dfb
Explain Installation in more detail
8 years ago
Dan Abramov
aad104265a
Tweak examples
8 years ago
Marcy Sutton
017a36c6f9
fix(a11y): add missing labels to forms doc
Showing how to create a form without labeling inputs is an accessibility anti-pattern. This change adds labels to the examples to address that. Codepen may still need to be updated depending on how that example is created.
8 years ago
Anastasia A
125153c109
Update reference-react-dom.md
Add missing closing bracket
8 years ago
yuntao.qyt
c96979bd75
docs: delete unnecessary brackets
8 years ago
Michele Bertoli
82802a0da9
Make the Shallow Rendering example clearer ( #8269 )
* Make the Shallow Rendering example clearer
I was reading through the documentation, and I found that the `render` call on the `renderer` was missing.
* Use a regular function to define MyComponent
8 years ago
Satoshi Nakajima
1a5d504fb2
Replaced old refs with new callback refs ( #8254 )
8 years ago
Arni Fannar
10733f084a
Update refs-and-the-dom.md ( #8250 )
Since a lot of projects use [airbnb eslint config](https://www.npmjs.com/package/eslint-config-airbnb ) where [this rule](http://eslint.org/docs/rules/no-return-assign ) is enabled (and its a good rule) some people might get confused when they are trying this out in their project.
8 years ago
Ville Immonen
f8a328d6a5
Remove string ref from function component example ( #8244 )
Refs can't be attached to stateless functional components.
8 years ago
Kevin Lacker
809e28223e
forms breakup
8 years ago
Nate
a24967fc25
Fix typos in Shallow Rendering Documentation ( #8226 )
* Fix typos in Shallow Rendering Documentation
* Fix another occurrence
8 years ago
Kevin Lacker
d068700a40
Docs: add a bunch of redirects ( #8137 )
* add a bunch of redirects
* add more redirects
8 years ago
Alex Baumgertner
4d2633215c
Fix method markdown highlight ( #8218 )
8 years ago
Yura Chuchola
47215f9d06
Update forms.md ( #8136 )
The component Form in "Uncontrolled Radio Button" example doesn't need state, because it does not used in render() method.
8 years ago
Skasi
3ecb587b82
Remove duplicated word in doc ( #8157 )
Gets rid of an obsolete word in the documentation for "State and Lifecycle":
"Consider the ticking clock example from the one of the previous sections."
->
"Consider the ticking clock example from one of the previous sections."
8 years ago
Eugene
9c27104e9f
Update reference-react-component.md ( #8126 )
line 320: For example, this code ensures that the `color` prop is a string
8 years ago
Dan Abramov
30aee4908d
Clarify how transition props work ( #8124 )
8 years ago
Andreas Möller
823154cbfc
Fix: Remove unneeded else branches from documentation examples
8 years ago
Dan Abramov
b47e2d77c5
Consistent CodePen links in docs
8 years ago