Last active
September 13, 2017 18:16
-
-
Save irrationnelle/47b866c9cfcb6181f2520006b6c16dba to your computer and use it in GitHub Desktop.
Meteor & React 00
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>MD-FLow</title> | |
</head> | |
<body> | |
<div class="render-target"></div> <!-- react 컴포넌트를 렌더링할 위치 --> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
// App 컴포넌트 생성. 컴포넌트는 함수 컴포넌트 방식. | |
const App = () => { | |
return (<div>Hello, Meteor & React</div>); | |
} | |
Meteor.startup(() => { | |
ReactDOM.render(<App />, document.querySelector('.render-target')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment