Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. const List = () => (
  2. <React.Fragment>
  3. <div>{'One'}</div>
  4. <div>{'Two'}</div>
  5. <div>{'Three'}</div>
  6. </React.Fragment>
  7. );
  8.  
  9. <AnimatedList>
  10. <List />
  11. </AnimatedList>
  12.  
  13. const AnimatedList = ({ children }) => {
  14. const componentArray = React.Children.toArray(children);
  15. console.log(componentArray);
  16. ...
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement