routes.jsx 263 B

12345678910111213
  1. import React from "react";
  2. import {mount} from "react-mounter";
  3. // Load Layout and Welcome components.
  4. import { Layout, Welcome } from "./app.jsx";
  5. FlowRouter.route("/", {
  6. action() {
  7. mount(Layout, {
  8. content: (<Welcome name="fgm" />)
  9. });
  10. }
  11. });