Skip to content

Commit ac3e9b5

Browse files
committed
Merge pull request facebook#2370 from chenglou/rm-school
[Docs] Remove most of @jsx
2 parents 2bdad81 + 1b3b432 commit ac3e9b5

34 files changed

+21
-150
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ React is a JavaScript library for building user interfaces.
1313
We have several examples [on the website](http://facebook.github.io/react/). Here is the first one to get you started:
1414

1515
```js
16-
/** @jsx React.DOM */
1716
var HelloMessage = React.createClass({
1817
render: function() {
1918
return <div>Hello {this.props.name}</div>;

docs/_js/examples/hello.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
/**
2-
* @jsx React.DOM
3-
*/
4-
51
var HELLO_COMPONENT = "\
6-
/** @jsx React.DOM */\n\
72
var HelloMessage = React.createClass({\n\
83
render: function() {\n\
94
return <div>Hello {this.props.name}</div>;\n\

docs/_js/examples/markdown.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
/**
2-
* @jsx React.DOM
3-
*/
4-
51
var MARKDOWN_COMPONENT = "\
6-
/** @jsx React.DOM */\n\
7-
\n\
82
var converter = new Showdown.converter();\n\
93
\n\
104
var MarkdownEditor = React.createClass({\n\

docs/_js/examples/timer.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
/**
2-
* @jsx React.DOM
3-
*/
4-
51
var TIMER_COMPONENT = "\
6-
/** @jsx React.DOM */\n\
72
var Timer = React.createClass({\n\
83
getInitialState: function() {\n\
94
return {secondsElapsed: 0};\n\

docs/_js/examples/todo.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
/**
2-
* @jsx React.DOM
3-
*/
4-
51
var TODO_COMPONENT = "\
6-
/** @jsx React.DOM */\n\
72
var TodoList = React.createClass({\n\
83
render: function() {\n\
94
var createItem = function(itemText) {\n\

docs/_js/html-jsx.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* This source code is licensed under the BSD-style license found in the
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
8-
*
9-
* @jsx React.DOM
108
*/
119

1210
/**

docs/_js/jsx-compiler.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
/**
2-
* @jsx React.DOM
3-
*/
4-
51
var HELLO_COMPONENT = "\
6-
/** @jsx React.DOM */\n\
72
var HelloMessage = React.createClass({\n\
83
render: function() {\n\
94
return <div>Hello {this.props.name}</div>;\n\

docs/_js/live_editor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @jsx React.DOM
3-
*/
4-
5-
61
var IS_MOBILE = (
72
navigator.userAgent.match(/Android/i)
83
|| navigator.userAgent.match(/webOS/i)

docs/docs/02-displaying-data.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ Let's look at a really simple example. Create a `hello-react.html` file with the
3535
For the rest of the documentation, we'll just focus on the JavaScript code and assume it's inserted into a template like the one above. Replace the placeholder comment above with the following JS:
3636

3737
```javascript
38-
/** @jsx React.DOM */
39-
4038
var HelloWorld = React.createClass({
4139
render: function() {
4240
return (

docs/docs/02-displaying-data.zh-CN.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ next: jsx-in-depth.html
3535
在接下去的文档中,我们只关注 JavaScript 代码,假设我们把代码插入到上面那个模板中。用下面的代码替换掉上面用来占位的注释。
3636

3737
```javascript
38-
/** @jsx React.DOM */
39-
4038
var HelloWorld = React.createClass({
4139
render: function() {
4240
return (
@@ -84,4 +82,4 @@ JSX 非常小;上面“hello, world”的例子使用了 JSX 所有的特性
8482

8583
JSX 类似于 HTML,但不是完全一样。参考[JSX gotchas](/react/docs/jsx-gotchas.html) 学习关键区别。
8684

87-
最简单开始学习 JSX 的方法就是使用浏览器端的 `JSXTransformer`。我们强烈建议你不要在生产环境中使用它。你可以通过我们的命令行工具 [react-tools](http://npmjs.org/package/react-tools) 包来预编译你的代码。
85+
最简单开始学习 JSX 的方法就是使用浏览器端的 `JSXTransformer`。我们强烈建议你不要在生产环境中使用它。你可以通过我们的命令行工具 [react-tools](http://npmjs.org/package/react-tools) 包来预编译你的代码。

0 commit comments

Comments
 (0)