Dan Abramov
d60da2e7e2
Merge pull request #5695 from gaearon/patch-2
...
Fix children to be a prop in the blog post example
2015-12-21 20:04:52 +00:00
Cesar William Alvarenga
432eb4ba41
Fix typo
...
Fix the conference talk youtube url.
2015-12-21 16:02:53 -02:00
Daniel Lo Nigro
5efd66527c
Remove smart quotes from code snippet
...
"Smart" quotes aren't actually very smart.
2015-12-21 15:53:30 +11:00
Dan Abramov
f11568f034
Fix minor typos in the blog post
2015-12-18 23:24:07 +00:00
Dan Abramov
eeeba7e55d
Fix children to be a prop in the blog post example
2015-12-18 21:32:32 +00:00
Dan Abramov
1873b269e4
Added post about components, elements, and instances
2015-12-18 20:22:24 +00:00
Jim
0b6203c305
Merge pull request #5599 from zramaekers/shallow-compare-docs
...
Add documentation for shallowCompare addon
2015-12-16 15:34:04 -08:00
Jim
eeaf72f9aa
Added post about upgrading your code to avoid isMounted()
2015-12-15 16:25:07 -08:00
Lovisa Svallingson
48143d7b0e
Clarify dependency installation
...
Split browserify and webpack to separate sections.
Remove `babelify` from the webpack section since it's only for browserify
2015-12-14 09:28:20 -07:00
Jim
9f885dc7ad
Merge pull request #5655 from adraeth/patch-1
...
Correct highlight in tutorial7.js snippet
2015-12-13 13:13:44 -08:00
adraeth
493560112a
Correct highlight in tutorial7.js snippet
2015-12-13 17:38:30 +01:00
Justas Brazauskas
5d0cc54aa9
Fix few typos in React docs and comments
2015-12-13 16:39:07 +02:00
Jim
b5217c2217
Merge pull request #5605 from thekevlau/patch-1
...
Adding class->className as a JSX gotcha
2015-12-11 12:13:48 -08:00
Kevin Lau
31d07afba6
Finalized wording
2015-12-11 12:05:05 -08:00
Andrew Henderson
6f994a0a09
Helps avoid a common Issue when following tutorial
...
https://github.com/reactjs/react-tutorial/issues/87
2015-12-10 22:44:36 -08:00
koh-taka
535a7521d7
Fix wrong script name (showdown -> marked)
...
jp: チュートリアル内のshowdown を marked に修正
2015-12-11 11:23:56 +09:00
Vitor Balocco
4517ae4fde
Clarify usage of .propTypes and .defaultProps when using stateless functional components
...
I've seen some people unaware about the fact that you can still specify `.propTypes` and `.defaultProps` when you are defining a functional component by setting them as properties of the function.
I thought clarifying this in the docs could help!
2015-12-10 23:21:59 +01:00
Kevin Lau
187ec5a68b
added nuance about identifiers used in custom elements
2015-12-09 00:33:25 -08:00
Kevin Lau
9582034df7
Adding class->className as a JSX gotcha
...
It's mentioned as a note in "JSX in Depth" however I think for clarity and ease of look-up, it would be a good idea to also include it in the JSX Gotchas list?
2015-12-04 16:51:38 -08:00
Paul O’Shannessy
ea5b3e327e
[blog] Diversity Scholarship 2016
2015-12-04 14:51:12 -08:00
Zach Ramaekers
6f8388f703
adding documentation pages for shallowCompare addon
2015-12-04 08:53:33 -06:00
Jim
94c732fafa
Merge pull request #5588 from jimfb/setprops-replaceprops-deprecated
...
Increase severity of setprops and replaceprops deprecations, since their removal is now imminent.
2015-12-03 10:29:20 -08:00
jim
43128ce233
Increase severity of setprops and replaceprops deprecations, since their removal is now imminent.
2015-12-03 04:08:53 -08:00
Peter Newnham
461807c5fd
Rename minlength to minLength in the tags and attributes documentation page
2015-12-03 09:35:08 +00:00
Paul O’Shannessy
66896c4db2
Merge pull request #5559 from shogunsea/docs-add-marked
...
[docs]Add marked source in tutorial doc
2015-12-02 11:30:49 -08:00
zwhitchcox
926f17219c
Update ref-10-glossary.md
2015-12-02 08:52:51 -05:00
Iurii Kucherov
edb5c824f3
Update 08.1-more-about-refs.md
2015-12-01 19:28:34 +01:00
xxin
fc5bd6b06f
add marked source in tutorial doc
...
update wording of later section
no first, no next
more on wording
2015-11-30 19:08:11 -06:00
Paul O’Shannessy
4555b0a1a8
Merge pull request #5526 from yangshun/todo-app-id
...
[docs] Use id for TodoApp example
2015-11-28 11:58:20 -08:00
Paul O’Shannessy
dc43df8851
Merge pull request #5520 from mhujer/docs-spread-fix-babel
...
Docs: Transform rest and spread properties using Babel 6
2015-11-28 11:47:30 -08:00
Paul O’Shannessy
32360bfd51
Merge pull request #5546 from cody/singlechild
...
[docs] Single Child
2015-11-28 11:46:47 -08:00
Timur Carpeev
e193bfb300
Avoid mutating state in the example code
...
According to react documentation it is advised to:
NEVER mutate this.state directly, as calling setState() afterwards may replace the mutation you made. Treat this.state as if it were immutable.
https://facebook.github.io/react/docs/animation.html
In this particular case it is probably doesn't matter since setState is called directly after mutation, but it does provide a bad example of state mutation.
Another way of removing an item from an array can be `newItems = this.state.slice(0,i).concat(this.state.slice(i+1))` however the meaning can be less obvious to some.
2015-11-27 12:33:57 +01:00
Martin Hujer
8f952eecd6
Transform rest and spread properties using Babel 6
...
> Out of the box Babel doesn't do anything. In order to actually do
> anything to your code you need to enable plugins.
> (https://babeljs.io/docs/plugins/ )
2015-11-26 09:17:01 +01:00
Ben Alpert
35ff6123fe
Merge pull request #5543 from spicyj/rt103
...
Clarify wording in the tutorial
2015-11-25 09:37:28 -08:00
Stefan Dombrowski
4a80d994d4
[docs] Single Child
...
* Single Child belongs to Prop Validation, so it was moved there.
* "throw" was changed to "warn".
2015-11-25 17:34:40 +01:00
Paul O’Shannessy
f57c827268
Merge pull request #5523 from hejld/add-selection-and-composition-events-on-reference-page
...
[docs] Add missing sections to events reference page in IT and CN
2015-11-24 09:44:49 -08:00
Ben Alpert
5985d97df3
Clarify wording in the tutorial
...
reactjs/react-tutorial#103
2015-11-24 09:30:33 -08:00
hejld
662c897ed4
Add missing sections to events reference page in IT and CN
2015-11-24 15:56:58 +01:00
Matthew
a9749dc694
add highlight to a line of code to tutorial20.js (all languages included)
2015-11-24 01:23:55 -05:00
Kale
cf5236600c
Use null instead of '' in ternary expression
...
A blank string ('') resolves to <span></span> which produces a warning when place inside a <tr>
2015-11-23 06:38:08 -07:00
Tay Yang Shun
e3e3717b22
[docs] Use id for TodoApp example
2015-11-22 11:54:39 +08:00
Martin Hujer
981d6d0814
Rest/Spread Properties may not be part of ES7
...
According to the http://www.2ality.com/2015/11/tc39-process.html it is
not a good idea to guess target ES version until the proposal reaches
later phases.
Even the proposal repository now states
> It is a Stage 2 proposal for ECMAScript. <
(it has been changed in e9813ac78a )
2015-11-20 19:36:29 +01:00
Paul O’Shannessy
8702af60d9
Merge pull request #5511 from KeweiCodes/patch-1
...
Typo
2015-11-19 15:56:25 -08:00
Kewei Jiang
bd733ea014
Typo
2015-11-20 10:01:29 +13:00
Tay Yang Shun
19509ed012
Add in missing closing </li> for docs template
2015-11-20 00:56:25 +08:00
Paul O’Shannessy
923697c298
update website for 0.14.3
...
(cherry picked from commit 3f2f763dea095951258306289d8f196931c530c8)
2015-11-18 22:39:49 -08:00
Paul O’Shannessy
f7bfbe4d71
v0.14.3 blog post
...
(cherry picked from commit f92a630737ada4093401e55c661637a19bb362e6)
2015-11-18 22:39:49 -08:00
Tay Yang Shun
5ab2016f32
[docs] Use controlled components for tutorial
2015-11-18 14:43:03 +08:00
Jim
029b4ad70e
Added info (example+doc) about react with webcomponents
2015-11-13 20:22:24 -08:00
Paul O’Shannessy
f72915db12
[docs] Properly fix Korean docs
2015-11-12 15:57:17 -08:00