Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const List = () => (
- <React.Fragment>
- <div>{'One'}</div>
- <div>{'Two'}</div>
- <div>{'Three'}</div>
- </React.Fragment>
- );
- <AnimatedList>
- <List />
- </AnimatedList>
- const AnimatedList = ({ children }) => {
- const componentArray = React.Children.toArray(children);
- console.log(componentArray);
- ...
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement