Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const ComponentsWithRenderProps = () => (
- <ComponentA value={'Value'}>
- {({ data, doSomethingWithComponentA }) => (
- <ComponentB value={'B-value'}>
- {something => (
- <ComponentC
- data={data}
- something={something}
- onAnotherThing={doSomethingWithComponentA}
- />
- )}
- </ComponentB>
- )}
- </ComponentA>
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement