Skip to content

Instantly share code, notes, and snippets.

@notakaos
Last active March 20, 2016 08:58
Show Gist options
  • Save notakaos/96a7b30490a227a4e379 to your computer and use it in GitHub Desktop.
Save notakaos/96a7b30490a227a4e379 to your computer and use it in GitHub Desktop.
Meteor 1.3 + React Simple Memo Step 3-1
mkdir -p imports/ui/layouts
touch imports/ui/layouts/AppLayout.js
// client/main.js
import { Meteor } from 'meteor/meteor';
import React from 'react';
import { render } from 'react-dom';
import AppLayout from '../imports/ui/layouts/AppLayout';
Meteor.startup(() => {
render(
<AppLayout />,
document.getElementById('render-root')
);
});
// imports/ui/layouts/AppLayout.js
import React from 'react';
export default class AppLayout extends React.Component {
render() {
return (
<div className="container">
<h1>Hello, Meteor React World!</h1>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment