Pooya Parsa
e355e348b2
fix(examples/todo): don't submit empty values ( #10979 )
7 years ago
Dan Abramov
55f37b4576
Update the homepage with ES6 ( #7868 )
* Update the homepage with ES6
* Avoid array spread and stale state
8 years ago
Tay Yang Shun
e3e3717b22
[docs] Use id for TodoApp example
9 years ago
Jim
33cd980f0e
React -> ReactDOM for render() and findDOMNode()
9 years ago
PNikray
cfe4d1335e
Modified the todo example.
Instead of only using the index to supress the warning it now uses the
text + index to also ensure object iteration order.
10 years ago
PNikray
5725676aa7
Added the key attribute into the todo example
This is to solve the warning (that the key should be set) that was being raised when adding a new item.
10 years ago
Paul O’Shannessy
f9effa598f
Use --harmomy in docs examples for cleaner code
10 years ago
Paul O’Shannessy
12b9311066
React.renderComponent -> React.render
This covers most everything. The perf suite still needs work for the
Element updates. And the server rendering example needs to be done
wholesale.
10 years ago
Cheng Lou
33c7ee6112
[Docs] Remove most of @jsx
I kept some places intact (search for @jsx ) because they require other bigger changes:
- ref-01-top-level-api.md
- grunt/tasks/npm.js
- old blog posts (don't change those)
- examples/ folder, as they have their own package.json that rely on old dependencies (node-jsx, reactify) that haven't upgraded to 0.12
10 years ago
Ben Alpert
8b5822bdf8
Fix all errors and warnings on homepage
Also onChange instead of onInput in two places!
12 years ago
Cheng Lou
bdd6911dff
todo fix
12 years ago
jordow
42ff8cf7dc
Make todo example shorter and not rely on the DOM.
12 years ago
David Hu
efce85fe3c
Consistently use autoBind on homepage examples
Except for todo.js, all the other examples on the homepage use React.autoBind
when defining event handler methods.
Test Plan: Added todo items successfully
12 years ago
Paul O’Shannessy
eb278167cd
Initial public release
12 years ago