Thanks for the feedback.
I don't think is good idea to put heavy task in the render return anyway so the performance does not suffer much by having a If wrappers.
If you have a case that may cause performance issue, please let me know
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.
I agree with @lukeshiru - This solution is really expensive. If you want to do this I would highly suggest you use a render prop.
Thanks for the feedback.
I don't think is good idea to put heavy task in the render return anyway so the performance does not suffer much by having a If wrappers.
If you have a case that may cause performance issue, please let me know