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
9 years ago
Simen Bekkhus
29124cc06f
Add note on how to submit a form ( #6594 )
9 years ago
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.
9 years ago
David Percy
1f3eb46452
Fix inverted definition of Controlled component
9 years ago
Gajus Kuizinas
6a25717b8a
Improve definition of the controlled and uncontrolled input.
10 years ago
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.
9 years ago
Baraa Hamodi
a38a848170
Documentation cleanup.
9 years ago
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.
9 years ago
Ben Alpert
2bcc761667
counterexample -> antipattern
10 years ago
Paul O’Shannessy
5e3e74c4a8
Tweaks to new content in forms documentation
10 years ago
eriklharper
1eeac6c024
Review changes
Fixing spelling errors and revising based on feedback.
10 years ago
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.
10 years ago
Kohei TAKATA
59a9289cd2
Enclose a value of variable in back quote
10 years ago
Andreas Savvides
fe77239a9b
[ #3964 ] Add note about React's onChange vs. DOM's oninput
10 years ago
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/
10 years ago
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)
10 years ago
chen
1d2d17bfdc
Update 07-forms.md
10 years ago
Sebastian Markbage
4202fcd9c5
Replace transferPropsTo with transferring props patterns
10 years ago
Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
Jan Hancic
3c731a2b59
Remove quotes around the `value` attribute
11 years ago
Jan Hancic
fcd02320c7
Add ={true} so it's aligned with recommended practises
11 years ago
Jan Hancic
471ae3a592
Add a 'note' about passing arrays into the `value` attribute
This is for #1700
11 years ago
Karl Mikkelsen
a8b1b32513
Link to Events from Forms
closes #1372
11 years ago
Timothy Yung
77dbc54ed0
Fix "Uncontrolled Components" documentation
11 years ago
Cheng Lou
493a22b865
docs `select` `value` to control chosen option
11 years ago
Paul O’Shannessy
225abe1ec8
Standardized Markdown lists
12 years ago
Paul O’Shannessy
eec652323c
Cleanup "Forms"
12 years ago
Paul O’Shannessy
f2345ba2e2
Remove numbers from URLs.
This will let us keep docs in order on the filesystem but have
reasonable permalinks. If we add something at 02- it doesn't result in
lots of broken links.
12 years ago
Paul O’Shannessy
17ea30c8c5
Fix title casing and heading levels
12 years ago
petehunt
1263fde643
move docs around, add likebutton
12 years ago
petehunt
988efdee73
Reorg docs, write a lot of content, import a lot of stuff from dex
12 years ago