simple-todos-react.jsx 288 B

123456789
  1. // Define a collection to hold our tasks.
  2. Tasks = new Mongo.Collection('tasks');
  3. if (Meteor.isClient) {
  4. Meteor.startup(function () {
  5. // Use this branch to render the component after the page is ready.
  6. ReactDOM.render(<App />, document.getElementById('render-target'));
  7. });
  8. }