3 ms·
I think you misunderstand; the article is recommending you don't write the inelegant code or use the "hacky" approach. > If one needs such inelegant code to de
by Lazare 9y ago
I think you misunderstand; the article is recommending you don't write the inelegant code or use the "hacky" approach.
> If one needs such inelegant code to deal with basic boolean logic
You don't. Idiomatic React doesn't try and put complex logic in the JSX; the recommended approach (including in the linked article) is to do you logic in plain JS with small focused components or render functions.