daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Nov 14th, 2017 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top