Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. const App = React.createClass({
  2. render() {
  3. return (
  4. <div>
  5. <toolbar>
  6. <h1>{myTitleAccordingToPage}</h1>
  7. </toolbar>
  8. <main>
  9. {this.props.children}
  10. </main>
  11. </div>
  12. )
  13. }
  14. })
  15.  
  16. const A = React.createClass({
  17. render() {
  18. return (
  19. <div>
  20. Content for A page
  21. </div>
  22. )
  23. }
  24. })
  25.  
  26. const B = React.createClass({
  27. render() {
  28. return (
  29. <div>
  30. Content for B page
  31. </div>
  32. )
  33. }
  34. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement