Skip to content

Instantly share code, notes, and snippets.

@notakaos
Last active March 20, 2016 08:29
Show Gist options
  • Save notakaos/ac2353a051d6b63af482 to your computer and use it in GitHub Desktop.
Save notakaos/ac2353a051d6b63af482 to your computer and use it in GitHub Desktop.
Meteor 1.3 + React Simple Memo Step 2
meteor npm install --save react react-dom
meteor add [email protected]
<!-- client/main.html -->
<head>
<meta charset="utf-8" />
<title>Simple Memo</title>
</head>
<body>
<div id="render-root"></div>
</body>
// 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