SHARE
TWEET

Untitled

a guest Nov 14th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. = react_component('App', props: {test: 'abc'}, prerender: false)
  2.    
  3. <Route path="/" component={App} >
  4.    
  5. class App extends React.Component {
  6.   render() {
  7.     return (
  8.       <Header test={this.props.test}>
  9.       </Header>
  10.       {this.props.children}
  11.       <Footer />
  12.     );
  13.   }
  14. }
  15.  
  16. App.propTypes = { test: PropTypes.string };
  17.    
  18. <Route path="/" component={() => (<App myProp="value" />)}/>
RAW Paste Data
Top