-
-
Save notakaos/ac2353a051d6b63af482 to your computer and use it in GitHub Desktop.
Meteor 1.3 + React Simple Memo Step 2
This file contains hidden or 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
meteor npm install --save react react-dom | |
meteor add [email protected] |
This file contains hidden or 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
<!-- client/main.html --> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Simple Memo</title> | |
</head> | |
<body> | |
<div id="render-root"></div> | |
</body> |
This file contains hidden or 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
// client/main.js | |
import { Meteor } from 'meteor/meteor'; | |
import React from 'react'; | |
import { render } from 'react-dom'; | |
Meteor.startup(() => { | |
render( | |
<h1>Hello, Meteor React World!</h1>, | |
document.getElementById('render-root') | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment