Michal Srb
685a0934a4
Make the world a better place by placing closing /> on a new line ( #9699 )
8 years ago
Adam
74b35398c2
Remove ref usage in main markdown example ( #9160 )
from [elsewhere in the docs](https://facebook.github.io/react/docs/refs-and-the-dom.html ):
> Avoid using refs for anything that can be done declaratively.
8 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
Ben Alpert
2719c2e795
Use remarkable instead of marked ( #6961 )
https://github.com/reactjs/react-tutorial/issues/139
9 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
Bradley Spaulding
e38c477147
Extracted "safe taint" in docs/homepage to align with best practice #4212
9 years ago
Paul O’Shannessy
4a5b7ab8b4
Upgrade ESLint, fix code
10 years ago
Benjamin Woodruff
d36a3c8326
Enable more eslint-plugin-react rules
This should contain all the rules we probably want to use, except
react/wrap-multilines, which requires a larger codemod, and would
clutter this commit.
10 years ago
Ben Alpert
fdd13d86f2
[docs] Use marked instead of Showdown and escape HTML
Fixes #3501 .
10 years ago
Cheng Lou
6f25cb7b3e
Remove some `getDOMNode` from docs and examples
10 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
chico
3fcd3824b3
lint from root
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
Cheng Lou
99304a3a20
[docs] Tweak frontpage first example and jsx-compiler example
11 years ago
Cheng Lou
353981f384
docs add jsx->js tab to live editors
11 years ago
petehunt
3bf34d3255
Fix frontpage example to retain selection
11 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
Cheng Lou
084e726d3c
jsx
12 years ago
Cheng Lou
d0b7884924
textarea format
12 years ago
Paul O’Shannessy
459daa63da
Remove React.autoBind from examples
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
Ben Alpert
ccba6965b6
Update examples to use onInput instead of onKeyUp
onInput has the advantage that it responds to repeated key events before
onKeyUp and is called when modifying the input without the keyboard
(such as pasting with the mouse).
Test Plan:
Opened the ballmer-peak example and docs homepage in Chrome and checked
that both examples update whenever the text is changed.
12 years ago
petehunt
f0805bee14
Docs updates per community response
12 years ago
Paul Shen
d12a80fb6e
[docs] Fix couple minor typos/spelling
12 years ago
Paul O’Shannessy
eb278167cd
Initial public release
12 years ago