4 ms·
Yep. I very much prefer to keep all the actual _logic_ outside the JSX structure, and storing all conditional stuff in temp variables. I have an example of my
by acemarke 10y ago
Yep. I very much prefer to keep all the actual _logic_ outside the JSX structure, and storing all conditional stuff in temp variables. I have an example of my preferred approach at https://gist.github.com/markerikson/47fff93c92286db72b22bab5b02e2da3 https://gist.github.com/markerikson/47fff93c92286db72b22bab5... .
- debaserab2 10y agoThat's exactly how I do it, too!