AllenYuan

auth - pass currentUser to Header

Apr 24th, 2020
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ...  
  2.   render() {
  3.     return (
  4.       // render Header and children from router below that
  5.       <div>
  6.         <Header
  7.           currentUser={this.props.currentUser}
  8.           appName={this.props.appName}
  9.         />
  10.         {this.props.children}
  11.       </div>
  12.     );
  13.   }
  14. // ...
Advertisement
Add Comment
Please, Sign In to add comment