Commit Graph

70 Commits

Author SHA1 Message Date
Dan Abramov
55f37b4576 Update the homepage with ES6 (#7868)
* Update the homepage with ES6

* Avoid array spread and stale state
2016-10-04 19:33:09 +01:00
Keyan Zhang
0321236b1b [Docs] Error Decoder Page (#6946) 2016-06-04 14:43:56 -07:00
Ben Alpert
2719c2e795 Use remarkable instead of marked (#6961)
https://github.com/reactjs/react-tutorial/issues/139
2016-06-03 14:41:38 -07:00
Daniel Lo Nigro
ce7528f0cd Move HTMLtoJSX page off React site. References https://github.com/reactjs/react-magic/issues/52 (#6608) 2016-05-26 23:39:28 -07:00
Keyan Zhang
27a059b045 switched to codemirror's jsx mode (#6898) 2016-05-26 23:33:04 -07:00
Rick Beerendonk
c120193eca Year-agnostic copyright message, like React Native uses, to prevent the need for yearly changes. 2015-12-29 20:20:32 +01:00
Tay Yang Shun
e3e3717b22 [docs] Use id for TodoApp example 2015-11-22 11:54:39 +08:00
Jim
33cd980f0e React -> ReactDOM for render() and findDOMNode() 2015-10-05 17:46:58 -07:00
Vipul A M
588ae639db [docs] Replace JSXTransformer with babel/browser
Closes #4131
2015-09-25 20:13:19 -07:00
Paul O’Shannessy
a115c46689 [docs] Stop supporting our JSX compiler page
Link to Babel REPL directly instead.
2015-09-25 17:56:42 -07:00
Bradley Spaulding
e38c477147 Extracted "safe taint" in docs/homepage to align with best practice #4212 2015-09-21 22:24:51 -07:00
Paul O’Shannessy
4a5b7ab8b4 Upgrade ESLint, fix code 2015-08-10 17:04:29 -07:00
Chris Ha
e85c628c4b Switch to using comma-dangle: always-multiline 2015-07-16 23:40:16 -07:00
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
Paul O’Shannessy
e159c2caf8 [docs] Move pre-compiled JS files 2015-05-13 10:57:47 -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
Paul O’Shannessy
4db91d74fe [docs] show line numbers in online jsx compiler 2015-03-01 11:53:06 -08: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
Rick Beerendonk
50208751b1 Update copyright headers for 2015 2015-01-31 20:18:25 +01:00
Alexandre Gaudencio
0cfd3260f9 Trailing commas break old IE versions 2014-11-03 02:54:23 +01:00
Paul O’Shannessy
2a0b61b97a Bring in jsfiddle integration script, add harmony 2014-10-29 19:35:27 -07: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
Paul O’Shannessy
28f444e1bd BSD + PATENTS 2014-10-10 13:34:07 -07:00
Daniel Lo Nigro
1d0fc1188b console.warn when html-jsx-lib.js is loaded 2014-09-07 15:20:42 -07:00
Daniel Lo Nigro
4bfdaa7929 Move htmltojsx.js to React-Magic project.
The HTMLtoJSX file is really a part of the React-Magic project, and should belong there rather than here:
 - It doesn't really follow the release cycle of React at all
 - It is totally standalone with no dependency on React
 - The only usage of this script is in React-Magic and on the HTML to JSX page on the React website (http://facebook.github.io/react/html-jsx.html)

I've hotlinked it from the Github site for that project since this was the easiest way to pull it in.

Due to the fact that Github Pages lacks redirects (among other basic web hosting functionality), I've replaced the `html-jsx-lib.js` file with a comment explaining where the file has moved to, just in case anyone was hotlinking it from the React site.
2014-09-06 22:51:52 -07:00
Daniel Lo Nigro
5a6eac6ba2 Small tweaks to HTML to JSX page:
- Remove "Compiled JS" tab since it doesn't make sense
 - Relabelled editor to "Live HTML Editor" rather than "Live JSX Editor"
2014-08-31 21:48:10 -07:00
Ben Alpert
1cd3c3e7e9 Add --harmony option to live JSX compiler page 2014-06-28 17:29:30 -07:00
Paul O’Shannessy
d23ee2f817 Update copyrights for 2014.
grep -rl 'Copyright 2013 Facebook' static_upstream | xargs perl -pi -w -e s/Copyright 2013 Facebook/Copyright 2013-2014 Facebook/g;'

Not going to check in a script to do this since it will just change every year.
Closes #1006
2014-02-18 17:06:43 -08:00
Cheng Lou
8116e9cb38 [Docs] Hide compiled js tab in jsx-compiler.html
Fixes #1049
2014-02-10 23:22:59 -08:00
Ben Alpert
27087a5704 Disable CodeMirror smart indentation
Fixes #966.
2014-01-31 22:10:37 -08: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
Ben Alpert
dd2dc27184 Simplify live editor execution logic 2014-01-17 17:42:53 -08:00
Ben Alpert
d4553afa1f Properly clear live editor on JSX compile failure 2014-01-17 17:42:40 -08:00
Cheng Lou
353981f384 docs add jsx->js tab to live editors 2014-01-17 15:49:59 -08:00
Cheng Lou
c0a9df9e5b docs better error display for live editor and JSX compiler 2014-01-01 19:41:08 -05:00
Christopher Chedeau
b627e76d7c Merge pull request #755 from spicyj/cm-scroll
Upgrade codemirror and enable line wrapping
2013-12-30 20:56:59 -08:00
Ben Alpert
3e8520f9d8 Upgrade codemirror and enable line wrapping
Fixes #678.
2013-12-30 18:06:00 -07:00
Ben Alpert
2deed9882e IE8 style fixes
- Add html5shiv so that HTML5 elements like header, footer, etc can be styled
- Remove a couple uses of :first-child/:last-child which IE8 doesn't support
2013-12-30 17:17:17 -07:00
Christopher Chedeau
9f2a159628 Merge pull request #749 from spicyj/docs-ie8
Make React website work in IE8
2013-12-30 14:28:19 -08:00
Ben Alpert
315c58b7cf Make React website work in IE8
Fixes #406.

Empty conditional comment is for http://www.phpied.com/conditional-comments-block-downloads/.
2013-12-30 15:25:26 -07:00
jhiswin
daaed17d12 live_editor.js using deprecated function
unmountAndReleaseReactRootNode -> unmountComponentAtNode
breaks html-jsx.html
2013-12-29 09:42:35 -05:00
Vjeux
70941c0354 Fix html-jsx compiler
It changed React Playground to add a required props but unfortunately didn't update the call sites of the front-page. I don't think it should be required so I'm just making it optional and providing the correct default value.

Test Plan:
 - Open the front page and make sure examples are working
 - Open /react/jsx-compiler.html and make sure it is working
 - Open /react/html-jsx.html and make sure it is working
2013-12-23 18:24:22 +01:00
Daniel Lo Nigro
03b64bef0c Simple HTML to JSX converter, built during Hackathon 40 at Facebook.
See /react/html-jsx.html. Not directly linked from the site yet as there may still be some minor issues with it.
2013-12-21 17:44:38 -08:00