K
K
KnightForce2017-10-14 03:29:59
React
KnightForce, 2017-10-14 03:29:59

React Router. Difference between component and render?

When used The docs say that a new component is created for every render. And what happens in the case of render<Route path="/path" component={MyComponent}/>

<Route path="/path" render={() => <MyComponent/>}/>
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-10-14
@KnightForce

It is enough to look into the source code, there is nothing complicated, a minimum of magic

poke
59e168e514471167795753.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question