React 템플릿

2294 단어
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo1</title>
</head>
<body>
    <div id="exemple"></div>


    <script src="bower_components/react/react.js"></script>
    <script src="bower_components/react/react-dom.js"></script>
    <script src="js/browser.min.js"></script>

    <script type="text/babel">

    var MyForm = React.createClass({
        render: function(){
            return <input type="text" default="Hello Allan!" />
        }
    });
    ReactDOM.render(<MyForm></MyForm>, document.getElementById('exemple'));
    </script>
</body>
</html>

좋은 웹페이지 즐겨찾기