simple-todos-react.jsx 407 B

1234567891011121314
  1. // Define a collection to hold our tasks.
  2. Tasks = new Mongo.Collection('tasks');
  3. if (Meteor.isClient) {
  4. // This code is executed on the client only.
  5. Accounts.ui.config({
  6. passwordSignupFields: "USERNAME_ONLY"
  7. });
  8. Meteor.startup(function () {
  9. // Use this branch to render the component after the page is ready.
  10. ReactDOM.render(<App />, document.getElementById('render-target'));
  11. });
  12. }