<script type="text/babel">
        function CustomComponent(props){
            return (<div>
                i am a react component,i can get data from props and state!
            </div>);
        };

        ReactDOM.render(
            <CustomComponent />,
            document.getElementById('app')
        );
    </script>
</body>
</html>