If you mean the render of <If/> component will be executed regardless of the condition, that is true. But I don't think it will cause any error itself.
For performance, so far I don't feel any drawback of using this approach since it does not render its children when condition if false as I mentioned previously.
It should be very similar to the <Route/> in React-Router.
Best
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you mean the render of
<If/>
component will be executed regardless of the condition, that is true. But I don't think it will cause any error itself.For performance, so far I don't feel any drawback of using this approach since it does not render its children when condition if false as I mentioned previously.
It should be very similar to the
<Route/>
inReact-Router
.Best