app.jsx 314 B

1234567891011121314151617
  1. import React from "react";
  2. // Define and export our Layout component.
  3. export const Layout = ({ content }) => (
  4. <div>
  5. <h1>My app</h1>
  6. <hr />
  7. <div>{ content }</div>
  8. </div>
  9. );
  10. // Define and export our Welcome component.
  11. export const Welcome = ({ name }) => (
  12. <div>
  13. Hello, { name }
  14. </div>
  15. );