-
-
Save notakaos/96a7b30490a227a4e379 to your computer and use it in GitHub Desktop.
Meteor 1.3 + React Simple Memo Step 3-1
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
mkdir -p imports/ui/layouts | |
touch imports/ui/layouts/AppLayout.js |
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'; | |
import AppLayout from '../imports/ui/layouts/AppLayout'; | |
Meteor.startup(() => { | |
render( | |
<AppLayout />, | |
document.getElementById('render-root') | |
); | |
}); |
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
// 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