L
L
lil_web2019-08-12 15:39:40
React
lil_web, 2019-08-12 15:39:40

How to wrap a layout using Render Props?

You need to wrap the layout in divstyle position: absoluteusing the Render Prop component.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-08-12
@lil_web

const Example = ({ children }) => <div className="some_selector">{children}</div>;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question