34 Commits

Author SHA1 Message Date
Adam 91b1cde5d6 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.
(cherry picked from commit bf5abdf14f)
2017-03-12 15:45:59 +00:00
Dan Abramov 5fe354bc1e Update the homepage with ES6 (#7868)
* Update the homepage with ES6

* Avoid array spread and stale state
2016-10-04 19:33:52 +01:00
Ben Alpert 79707ca3ee Use remarkable instead of marked (#6961)
https://github.com/reactjs/react-tutorial/issues/139
(cherry picked from commit 1801d56500)
2016-06-03 14:41:50 -07:00
Tay Yang Shun bf4bd19101 [docs] Use id for TodoApp example 2015-11-22 11:54:39 +08:00
Jim 712199ef98 React -> ReactDOM for render() and findDOMNode() 2015-10-05 17:46:58 -07:00
Bradley Spaulding 52d8d3b2ff Extracted "safe taint" in docs/homepage to align with best practice #4212 2015-09-21 22:24:51 -07:00
Paul O’Shannessy ecb34de574 Upgrade ESLint, fix code 2015-08-10 17:04:29 -07:00
Benjamin Woodruff f41abdf70f 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 36aefcb8cc [docs] Use marked instead of Showdown and escape HTML
Fixes #3501.
2015-04-13 15:50:40 -07:00
Cheng Lou 5561d0e925 Remove some getDOMNode from docs and examples 2015-04-02 17:23:27 -04:00
Paul O’Shannessy cb05e2f85b 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 3516f33ffd 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 9c7f9b8de5 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 466f4faf4e lint from root 2015-02-20 04:06:15 +03:00
Paul O’Shannessy 0344aaf18d Use --harmomy in docs examples for cleaner code 2014-10-28 11:06:30 -07:00
Paul O’Shannessy f53854bd93 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 1b3b432d64 [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 ffc31ed77b Merge pull request #914 from chenglou/jsx
tweak frontpage first example code
2014-01-17 18:27:51 -08:00
Cheng Lou d8d4120614 [docs] Tweak frontpage first example and jsx-compiler example 2014-01-17 17:53:44 -08:00
Cheng Lou 71b585325c docs add jsx->js tab to live editors 2014-01-17 15:49:59 -08:00
petehunt 00adabc20d Fix frontpage example to retain selection 2013-12-02 04:04:45 -08:00
Ben Alpert e379f8ec03 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 dbdf1cc296 Merge branch 'chenglou-master'
Conflicts:
	docs/_js/examples/markdown.js
2013-07-17 13:30:22 -07:00
Cheng Lou dd14fdfdc5 todo fix 2013-07-17 16:28:04 -04:00
Cheng Lou fc6a567e0e jsx 2013-07-17 16:25:25 -04:00
Cheng Lou 169b172ffc textarea format 2013-07-17 16:22:30 -04:00
Paul O’Shannessy 5db3a0e481 Remove React.autoBind from examples 2013-07-16 23:44:09 -07:00
jordow 81f3a5c6cd Make todo example shorter and not rely on the DOM. 2013-06-07 13:11:40 -07:00
Paul O’Shannessy 1e76d84569 Merge pull request #32 from spicyj/input
Add new onInput event
2013-06-05 14:57:25 -07:00
David Hu 7795968382 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 2467c0e651 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 cfe3b75cb0 Docs updates per community response 2013-05-30 01:16:15 -07:00
Paul Shen ef6754bce5 [docs] Fix couple minor typos/spelling 2013-05-29 13:37:07 -07:00
Paul O’Shannessy 75897c2dcd Initial public release 2013-05-29 12:54:02 -07:00