diff --git a/_js/html-jsx.js b/_js/html-jsx.js deleted file mode 100644 index 4e6937bd..00000000 --- a/_js/html-jsx.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -/** - * This is a web interface for the HTML to JSX converter contained in - * `html-jsx-lib.js`. - */ -;(function() { - -var HELLO_COMPONENT = "\ -\n\ -
\n\ - \n\ - \n\ -
\n\ -

Enter your HTML here

\ -"; - - var HTMLtoJSXComponent = React.createClass({ - getInitialState: function() { - return { - outputClassName: 'NewComponent', - createClass: true - }; - }, - onReactClassNameChange: function(evt) { - this.setState({ outputClassName: evt.target.value }); - }, - onCreateClassChange: function(evt) { - this.setState({ createClass: evt.target.checked }); - }, - setInput: function(input) { - this.setState({ input: input }); - this.convertToJsx(); - }, - convertToJSX: function(input) { - var converter = new HTMLtoJSX({ - outputClassName: this.state.outputClassName, - createClass: this.state.createClass - }); - return converter.convert(input); - }, - render: function() { - return ( -
-
- - -
- -
- ); - } - }); - - ReactDOM.render(, document.getElementById('jsxCompiler')); -}()); diff --git a/docs/02.1-jsx-in-depth.it-IT.md b/docs/02.1-jsx-in-depth.it-IT.md index 0da7a603..a0e40146 100644 --- a/docs/02.1-jsx-in-depth.it-IT.md +++ b/docs/02.1-jsx-in-depth.it-IT.md @@ -84,7 +84,7 @@ var Nav = React.createClass({displayName: "Nav", }); Usa la [REPL di Babel](https://babeljs.io/repl/) per provare il JSX e vedere come viene trasformato in JavaScript nativo, e il -[convertitore da HTML a JSX](/react/html-jsx.html) per convertire il tuo HTML esistente a +[convertitore da HTML a JSX](http://magic.reactjs.net/htmltojsx.htm) per convertire il tuo HTML esistente a JSX. Se desideri utilizzare JSX, la guida [Primi Passi](/react/docs/getting-started-it-IT.html) ti mostra come impostare la compilazione. diff --git a/docs/02.1-jsx-in-depth.ja-JP.md b/docs/02.1-jsx-in-depth.ja-JP.md index dcbd5210..06ca5fbb 100644 --- a/docs/02.1-jsx-in-depth.ja-JP.md +++ b/docs/02.1-jsx-in-depth.ja-JP.md @@ -80,7 +80,7 @@ var Nav = React.createClass({ }); var Nav = React.createClass({displayName: "Nav", }); ``` -JSXを試し、どのようにネイティブなJavaScriptに変換されるか見るには、[JSX Compiler](/react/jsx-compiler.html)を、すでに存在するHTMLをJSXに変換するには[HTMLからJSXへのコンバーター](/react/html-jsx.html)を使ってください。 +JSXを試し、どのようにネイティブなJavaScriptに変換されるか見るには、[JSX Compiler](/react/jsx-compiler.html)を、すでに存在するHTMLをJSXに変換するには[HTMLからJSXへのコンバーター](http://magic.reactjs.net/htmltojsx.htm)を使ってください。 JSXを使いたい場合は、[始めてみましょう](/react/docs/getting-started-ja-JP.html)というガイドがどのようにコンパイルを設定するか示してくれます。 diff --git a/docs/02.1-jsx-in-depth.ko-KR.md b/docs/02.1-jsx-in-depth.ko-KR.md index cbcdea80..fa64acb8 100644 --- a/docs/02.1-jsx-in-depth.ko-KR.md +++ b/docs/02.1-jsx-in-depth.ko-KR.md @@ -83,7 +83,7 @@ var Nav = React.createClass({ }); var Nav = React.createClass({displayName: "Nav", }); ``` -[바벨 REPL](https://babeljs.io/repl/)를 보면 JSX에서 어떻게 네이티브 JavaScript로 변환(desugars)하는지 볼 수 있고, [HTML-JSX 변환기](/react/html-jsx.html)는 이미 있는 HTML을 JSX로 변환해 줍니다. +[바벨 REPL](https://babeljs.io/repl/)를 보면 JSX에서 어떻게 네이티브 JavaScript로 변환(desugars)하는지 볼 수 있고, [HTML-JSX 변환기](http://magic.reactjs.net/htmltojsx.htm)는 이미 있는 HTML을 JSX로 변환해 줍니다. JSX를 사용 하시려면, [시작하기](/react/docs/getting-started-ko-KR.html) 가이드에서 어떻게 컴파일을 하기 위해 설정하는지 보실 수 있습니다. diff --git a/docs/02.1-jsx-in-depth.md b/docs/02.1-jsx-in-depth.md index 8397e504..a7bb79b8 100644 --- a/docs/02.1-jsx-in-depth.md +++ b/docs/02.1-jsx-in-depth.md @@ -82,7 +82,7 @@ var Nav = React.createClass({ }); var Nav = React.createClass({displayName: "Nav", }); ``` -Use the [Babel REPL](https://babeljs.io/repl/) to try out JSX and see how it desugars into native JavaScript, and the [HTML to JSX converter](/react/html-jsx.html) to convert your existing HTML to JSX. +Use the [Babel REPL](https://babeljs.io/repl/) to try out JSX and see how it desugars into native JavaScript, and the [HTML to JSX converter](http://magic.reactjs.net/htmltojsx.htm) to convert your existing HTML to JSX. If you want to use JSX, the [Getting Started](/react/docs/getting-started.html) guide shows how to set up compilation. diff --git a/docs/02.1-jsx-in-depth.zh-CN.md b/docs/02.1-jsx-in-depth.zh-CN.md index 2a499698..c1857152 100644 --- a/docs/02.1-jsx-in-depth.zh-CN.md +++ b/docs/02.1-jsx-in-depth.zh-CN.md @@ -82,7 +82,7 @@ var Nav = React.createClass({ }); var Nav = React.createClass({displayName: "Nav", }); ``` -使用 [JSX 编译器](/react/jsx-compiler.html) 来试用 JSX 并理解它是如何转换到原生 JavaScript,还有 [HTML 到 JSX 转换器](/react/html-jsx.html) 来把现有 HTML 转成 JSX。 +使用 [JSX 编译器](/react/jsx-compiler.html) 来试用 JSX 并理解它是如何转换到原生 JavaScript,还有 [HTML 到 JSX 转换器](http://magic.reactjs.net/htmltojsx.htm) 来把现有 HTML 转成 JSX。 如果你要使用 JSX,这篇 [新手入门](/react/docs/getting-started.html) 教程来教你如何搭建环境。 diff --git a/html-jsx.html b/html-jsx.html new file mode 100644 index 00000000..b0d09c22 --- /dev/null +++ b/html-jsx.html @@ -0,0 +1,12 @@ + + + + HTML to JSX + + + + + This page has moved to http://magic.reactjs.net/htmltojsx.htm + + diff --git a/html-jsx.md b/html-jsx.md deleted file mode 100644 index 56e84c47..00000000 --- a/html-jsx.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: default -title: HTML to JSX -id: html-jsx ---- -
-

HTML to JSX Compiler

-
- - -