l
Size: a a a
l
YL
YL
YL
l
🚀🚀
🦜
l
l
YL
l
function App() {
return (
<ComponentWithRenderProp>
{([id, setId]) => (
<>
<button onClick={() => setId(id + 1)}>Get next Todo</button>
{/*In this situation, we have the ability to simultaneously
render a component and make a request, rather than wait for the component*/}
<TodoGate id={id} />
<Todo />
</>
)}
</ComponentWithRenderProp>
)
}
l
OR
<>
<Gate />
<MyComp />
</>
🦜
<>
<Gate />
<MyComp />
</>
OR
YL
<>
<Gate />
<MyComp />
</>
OR
YL
OR
YL