Y
Hacker News
new
|
ask
|
show
|
jobs
by
acemarke
3416 days 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/47fff93c92286db72b22bab5...
.
1 comments
debaserab2
3416 days ago
That's exactly how I do it, too!
link