Commit Graph

8 Commits

Author SHA1 Message Date
Moacir Rosa
a70df84837 Only fix a small wrong key in example (#8976)
Only fix a small wrong key in example
2017-02-10 15:40:24 +00:00
Justin Grant
f7ea62e491 Reminder: strip quotes from attributes with JS code (#8806)
* Reminder: strip quotes from attributes with JS code

Web developers who are used to standards-compliant HTML and XML will, out of habit, put quotes around all attributes because the standards require them. Other templating systems like ASP.NET also require (or at least allow) quotes around attributes that contain code. This behavior will get users into trouble in JSX because a quoted attribute is always treated as a string literal, even if it contains curly-braced javascript code.  Let's add to the docs to help newbies evade this problem.

* Tweak wording
2017-01-23 18:09:35 +01:00
DQNEO
aa9abe5fde use an easier word (#8809)
* use an easier word

The word `mandatory` is relatively difficult for people with ESL (English as a second language), so I propose an alternative word.
This would be much easier to understand.

* use simpler word
2017-01-17 10:00:11 -08:00
Dan Abramov
5c995eebba Small nit: add a sentence about readability back 2016-11-18 16:20:17 +00:00
Shubheksha Jalan
448aa90482 Improved some sections of the introducing JSX docs 2016-11-18 21:09:34 +05:30
Andreas Möller
823154cbfc Fix: Remove unneeded else branches from documentation examples 2016-10-27 13:12:37 +01:00
Lewis Blackwood
3aa40ba6a3 Correct usage of formatName() function in docs (#8122)
The code section above these changes defines a `formatName` function
that expects a parameter `user`. The code section containing these
changes incorrectly called `formatName(user.name)`. For those following
along with CodePen, this section should correctly call
`formatName(user)`.
2016-10-27 13:01:04 +01:00
Kevin Lacker
aa9544bfac New Documentation 2016-10-21 20:59:08 +01:00