Skip to content

Instantly share code, notes, and snippets.

@irrationnelle
Last active September 13, 2017 18:16
Show Gist options
  • Save irrationnelle/47b866c9cfcb6181f2520006b6c16dba to your computer and use it in GitHub Desktop.
Save irrationnelle/47b866c9cfcb6181f2520006b6c16dba to your computer and use it in GitHub Desktop.
Meteor & React 00
<head>
<title>MD-FLow</title>
</head>
<body>
<div class="render-target"></div> <!-- react 컴포넌트를 렌더링할 위치 -->
</body>
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