Guest User

Untitled

a guest
Aug 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class ParentComponent extends Component {
  2. render() {
  3. return (
  4. <MyContext.Consumer>
  5. {(context) => {
  6. if(axiosSuccess) {context.updateContextState(parentState);}
  7. return (
  8. <ChildComponent/>
  9. )
  10. }}
  11. </MyContext.Consumer>
  12. );
  13. }
  14. }
Add Comment
Please, Sign In to add comment