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.
2015-06-04 09:43:16 -07:00
Ben Alpert
fdd13d86f2
[docs] Use marked instead of Showdown and escape HTML
...
Fixes #3501 .
2015-04-13 15:50:40 -07:00
Cheng Lou
6f25cb7b3e
Remove some getDOMNode from docs and examples
2015-04-02 17:23:27 -04:00
Paul O’Shannessy
ca6982e443
Merge pull request #3271 from delftswa2014/fix/todo-example
...
Added the key attribute into the todo example
2015-03-23 14:54:08 -07:00
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.
2015-03-02 19:49:42 +01:00
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.
2015-02-26 19:37:05 +01:00
chico
3fcd3824b3
lint from root
2015-02-20 04:06:15 +03:00
Paul O’Shannessy
f9effa598f
Use --harmomy in docs examples for cleaner code
2014-10-28 11:06:30 -07:00
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.
2014-10-23 20:51:11 -07:00
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
2014-10-20 14:44:07 -04:00
Ben Alpert
2a4e16536d
Merge pull request #914 from chenglou/jsx
...
tweak frontpage first example code
2014-01-17 18:27:51 -08:00
Cheng Lou
99304a3a20
[docs] Tweak frontpage first example and jsx-compiler example
2014-01-17 17:53:44 -08:00
Cheng Lou
353981f384
docs add jsx->js tab to live editors
2014-01-17 15:49:59 -08:00
petehunt
3bf34d3255
Fix frontpage example to retain selection
2013-12-02 04:04:45 -08:00
Ben Alpert
8b5822bdf8
Fix all errors and warnings on homepage
...
Also onChange instead of onInput in two places!
2013-07-17 13:31:52 -07:00
Paul O’Shannessy
c3b5e071e5
Merge branch 'chenglou-master'
...
Conflicts:
docs/_js/examples/markdown.js
2013-07-17 13:30:22 -07:00
Cheng Lou
bdd6911dff
todo fix
2013-07-17 16:28:04 -04:00
Cheng Lou
084e726d3c
jsx
2013-07-17 16:25:25 -04:00
Cheng Lou
d0b7884924
textarea format
2013-07-17 16:22:30 -04:00
Paul O’Shannessy
459daa63da
Remove React.autoBind from examples
2013-07-16 23:44:09 -07:00
jordow
42ff8cf7dc
Make todo example shorter and not rely on the DOM.
2013-06-07 13:11:40 -07:00
Paul O’Shannessy
b342c9ef2c
Merge pull request #32 from spicyj/input
...
Add new onInput event
2013-06-05 14:57:25 -07:00
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
2013-06-02 12:04:16 -07:00
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.
2013-05-30 18:20:34 -07:00
petehunt
f0805bee14
Docs updates per community response
2013-05-30 01:16:15 -07:00
Paul Shen
d12a80fb6e
[docs] Fix couple minor typos/spelling
2013-05-29 13:37:07 -07:00
Paul O’Shannessy
eb278167cd
Initial public release
2013-05-29 12:54:02 -07:00