완전 쌩(?) html에서 react.js 실행하기
참고.
https://medium.com/@to_pe/how-to-add-react-to-a-simple-html-file-a11511c0235f
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.21.1/babel.min.js"></script> </head> <body> <div id="app"></div> <script type="text/babel"> class Greeting extends React.Component { render() { return (<p>Hello world</p>); } } ReactDOM.render( <Greeting />, document.getElementById('app') ); </script> </body> </html> | cs |
'SW개발 > Etc' 카테고리의 다른 글
[React Native] 안드로이드 기본 앱 개발 #2 (expo 플랫폼 사용, apk 작성, 배포) (2) | 2017.09.30 |
---|---|
[React Native] 안드로이드 기본 앱 개발 #1 (expo 플랫폼 사용) (1) | 2017.09.30 |
[reactjs] firebase 에서 react.js 웹 호스팅하기 (0) | 2017.09.26 |
[reactjs] html 파일 위에서 react.js 웹 간단하게 시작하기 (0) | 2017.09.14 |
angular 웹개발 (ecplise, spring boot, typescript) - #2 (0) | 2017.08.30 |
angular 웹개발 (ecplise, spring boot, typescript) - #1 (0) | 2017.08.26 |
이클립스 maven remote catalog 주소 (0) | 2017.05.31 |
Google Cloud Datastore 사용하기(spring) (0) | 2017.05.31 |
Visual Studio Code에서 TypeScript 코딩하기 (0) | 2017.05.09 |
[Perl] linux command 결과를 받아오기 (0) | 2016.03.11 |
[Perl] signal 관리 (perlipc) (0) | 2015.10.21 |