Rafael Angeline
ca37fb35cb
Reusable Components ES6 Update
2016-10-03 21:02:32 +01:00
Daniel Lo Nigro
d457201862
Upgrade to Jekyll 3
...
Full list of changes is at https://jekyllrb.com/docs/upgrading/2-to-3/ . The tl;dr of it is:
- Relative permalinks were removed, so all the files in the `docs` subdirectory need their permalink to be prefixed with `docs/`
- `post` and `page` types were renamed to `posts` and `pages` respectively
- `jekyll-paginate`, `pygments` and `redcarpet` are all now optional, so I needed to explicitly add it to the Gemfile. Jekyll now uses `rouge` rather than `pygments` for syntax highlighting, but rouge does not support highlighting individual lines (`hl_lines`) so we need to continue using Pygments.
- Layout metadata (eg. `sectionid`) is now on a `layout` variable rather than `page`
Tested the following pages and confirmed that they all work:
- "Docs" link (getting started page): http://127.0.0.1:4000/react/docs/getting-started.html
- Downloads: http://127.0.0.1:4000/react/downloads.html
- Tutorial: http://127.0.0.1:4000/react/docs/tutorial.html
- A few pages under the "docs" subdirectory, to confirm they're working properly:
- http://127.0.0.1:4000/react/docs/addons.html
- http://127.0.0.1:4000/react/docs/why-react.html
- http://127.0.0.1:4000/react/docs/create-fragment.html
- A few tips:
- http://127.0.0.1:4000/react/tips/false-in-jsx.html
- http://127.0.0.1:4000/react/tips/style-props-value-px.html
- Non-English versions of the page:
- http://127.0.0.1:4000/react/docs/getting-started-it-IT.html
- http://127.0.0.1:4000/react/docs/getting-started-ja-JP.html
2016-07-19 12:18:49 -07:00
Simen Bekkhus
29124cc06f
Add note on how to submit a form ( #6594 )
2016-04-28 08:42:29 -07:00
Michael Terry
ceec4829b7
Fix briefly confusing typo
...
There are two examples of a text input with initial value of "Hello!" on this page, a controlled and an uncontrolled. The explanation for the uncontrolled version mistakenly says it works much like the earlier "uncontrolled" example, but the earlier example was the controlled version.
2016-04-06 15:57:48 -07:00
David Percy
1f3eb46452
Fix inverted definition of Controlled component
2016-02-22 18:45:36 -05:00
Gajus Kuizinas
6a25717b8a
Improve definition of the controlled and uncontrolled input.
2016-02-04 12:02:53 +00:00
Jim
7cd91e2925
Fix wording to make it more clear that checkbox (input) supports defaultChecked
...
Fix some confusion about why `input` would support `defaultChecked` (it's because you can have an input of type checkbox). This has come up a couple of times (https://github.com/facebook/react/pull/5633 , https://github.com/facebook/react/pull/5774 ) but both those PRs were wrong and it was just easier to fix it myself.
2016-01-04 13:19:22 -08:00
Baraa Hamodi
a38a848170
Documentation cleanup.
2015-10-12 15:33:32 -04:00
Brenard Cubacub
269bfd4999
[docs] fix forms Default Value example
...
The Default Value section in the forms docs says "This example will function much like the Controlled Components example above."
The example actually functions like the Uncontrolled Components example, not the Controlled Components example.
2015-10-08 16:41:19 -07:00
Ben Alpert
a7cfa19ea0
Merge pull request #3069 from WickyNilliams/patch-1
...
document checkbox using click handlers for change events
2015-09-22 14:34:40 -07:00
Ben Alpert
2bcc761667
counterexample -> antipattern
2015-07-20 08:28:53 -07:00
Paul O’Shannessy
5e3e74c4a8
Tweaks to new content in forms documentation
2015-07-16 23:50:18 -07:00
eriklharper
1eeac6c024
Review changes
...
Fixing spelling errors and revising based on feedback.
2015-07-16 10:57:16 -07:00
eriklharper
ed2897cb17
Add more information about defaultValue
...
I came across an issue on a React project where I needed to programatically set the default value of an input as the result of an async call. (I was prepopulating a zip code field from the Google Maps Geocoding API). It didn't work when I passed in an updated defaultValue prop, until I came across this StackOverflow: http://stackoverflow.com/questions/30146105/react-input-defaultvalue-doesnt-update-with-state . I was able to get it to do what I wanted by passing in the value prop instead.
2015-07-14 13:28:55 -07:00
Kohei TAKATA
59a9289cd2
Enclose a value of variable in back quote
2015-07-06 17:57:44 +09:00
Andreas Savvides
fe77239a9b
[ #3964 ] Add note about React's onChange vs. DOM's oninput
2015-06-07 10:39:08 +01:00
Ustin Zarubin
3604354776
Swapping defaultChecked and defaultValue
...
The current documentation states that the `<select>` tag supports `defaultChecked`, but it actually doesn't. I believe this documentation was meant to be written in the proposed order.
Non-working fiddle using `defaultChecked`: http://jsfiddle.net/jqs1hsLr/1/
Working fiddle using `defaultValue`: http://jsfiddle.net/nv7z0yzL/1/
2015-03-26 16:42:36 -04:00
Nick Williams
d475f70910
document checkbox using click handlers for change events
...
I hit an issue related to this earlier today. Feels like a short paragraph warning of potential issues would be of benefit. Discussed with @zpao on IRC, agreed to make PR.
For more info:
* https://github.com/facebook/react/issues/3005#issuecomment-72513965
* c7e4f55eb0/src/browser/eventPlugins/ChangeEventPlugin.js (L287)
2015-02-05 22:32:23 +00:00
chen
1d2d17bfdc
Update 07-forms.md
2015-01-09 10:19:42 +08:00
Sebastian Markbage
4202fcd9c5
Replace transferPropsTo with transferring props patterns
2014-10-28 11:06:30 -07:00