Andrew Henderson
6f994a0a09
Helps avoid a common Issue when following tutorial
https://github.com/reactjs/react-tutorial/issues/87
9 years ago
koh-taka
535a7521d7
Fix wrong script name (showdown -> marked)
jp: チュートリアル内のshowdown を marked に修正
9 years ago
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!
9 years ago
Kevin Lau
187ec5a68b
added nuance about identifiers used in custom elements
9 years ago
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?
9 years ago
Paul O’Shannessy
ea5b3e327e
[blog] Diversity Scholarship 2016
9 years ago
Zach Ramaekers
6f8388f703
adding documentation pages for shallowCompare addon
9 years ago
Jim
94c732fafa
Merge pull request #5588 from jimfb/setprops-replaceprops-deprecated
Increase severity of setprops and replaceprops deprecations, since their removal is now imminent.
9 years ago
jim
43128ce233
Increase severity of setprops and replaceprops deprecations, since their removal is now imminent.
9 years ago
Peter Newnham
461807c5fd
Rename minlength to minLength in the tags and attributes documentation page
9 years ago
Paul O’Shannessy
66896c4db2
Merge pull request #5559 from shogunsea/docs-add-marked
[docs]Add marked source in tutorial doc
9 years ago
zwhitchcox
926f17219c
Update ref-10-glossary.md
9 years ago
Iurii Kucherov
edb5c824f3
Update 08.1-more-about-refs.md
9 years ago
xxin
fc5bd6b06f
add marked source in tutorial doc
update wording of later section
no first, no next
more on wording
9 years ago
Paul O’Shannessy
4555b0a1a8
Merge pull request #5526 from yangshun/todo-app-id
[docs] Use id for TodoApp example
9 years ago
Paul O’Shannessy
dc43df8851
Merge pull request #5520 from mhujer/docs-spread-fix-babel
Docs: Transform rest and spread properties using Babel 6
9 years ago
Paul O’Shannessy
32360bfd51
Merge pull request #5546 from cody/singlechild
[docs] Single Child
9 years ago
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.
9 years ago
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/ )
9 years ago
Ben Alpert
35ff6123fe
Merge pull request #5543 from spicyj/rt103
Clarify wording in the tutorial
9 years ago
Stefan Dombrowski
4a80d994d4
[docs] Single Child
* Single Child belongs to Prop Validation, so it was moved there.
* "throw" was changed to "warn".
9 years ago
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
9 years ago
Ben Alpert
5985d97df3
Clarify wording in the tutorial
reactjs/react-tutorial#103
9 years ago
hejld
662c897ed4
Add missing sections to events reference page in IT and CN
9 years ago
Matthew
a9749dc694
add highlight to a line of code to tutorial20.js (all languages included)
9 years ago
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>
9 years ago
Tay Yang Shun
e3e3717b22
[docs] Use id for TodoApp example
9 years ago
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
)
9 years ago
Paul O’Shannessy
8702af60d9
Merge pull request #5511 from KeweiCodes/patch-1
Typo
9 years ago
Kewei Jiang
bd733ea014
Typo
9 years ago
Tay Yang Shun
19509ed012
Add in missing closing </li> for docs template
9 years ago
Paul O’Shannessy
923697c298
update website for 0.14.3
(cherry picked from commit 3f2f763dea095951258306289d8f196931c530c8)
9 years ago
Paul O’Shannessy
f7bfbe4d71
v0.14.3 blog post
(cherry picked from commit f92a630737ada4093401e55c661637a19bb362e6)
9 years ago
Tay Yang Shun
5ab2016f32
[docs] Use controlled components for tutorial
9 years ago
Jim
029b4ad70e
Added info (example+doc) about react with webcomponents
10 years ago
Paul O’Shannessy
f72915db12
[docs] Properly fix Korean docs
9 years ago
Paul O’Shannessy
a1c7c33efa
[docs] Use updated Korean translation
See #5456 for details
9 years ago
Paul O’Shannessy
233fb7cf76
[tutorial] Use ids in comments data
9 years ago
Hugo Agbonon
f98b6c74bd
Revert class name manipulation doc to english
9 years ago
Tay Yang Shun
5dd96fd0e2
Add more documentation to Context page
9 years ago
Paul O’Shannessy
1cc25362bc
Merge pull request #5416 from bbrooks/undo-optimistic-update-on-error
Reset state if comment submit fails
9 years ago
Jim
ae60862f96
Merge pull request #5403 from yuyokk/patch-1
Clarify note about stable keys
9 years ago
Iurii Kucherov
95955dc573
State that Math.random() is not a good way to generate keys
9 years ago
Matt Stow
d8cda14703
Removed unnecessary whitespace before closing bracket
9 years ago
Ben Brooks
7e60ed05d7
Reset state if comment submit fails
9 years ago
Ben Alpert
47aac4be24
Merge pull request #5287 from benhalpern/patch-1
Updated conference page
9 years ago
benhalpern
853419e694
Fixed ReactEurope date
9 years ago
Jim
a54ac8bd9a
Merge pull request #5231 from davidkpiano/patch-1
Updating "JSX Gotchas" docs for Custom Attributes
9 years ago
Paul O’Shannessy
bf9709734d
Update website for 0.14.2
(cherry picked from commit fdf6f6bbb0b1a07f198d5b4be4faa7c82a78bca8)
9 years ago
Paul O’Shannessy
26e8b9b89c
Blog post for 0.14.2
(cherry picked from commit a4fd08973bb7d41d1d36420c76f69142e8d102f6)
9 years ago