MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/f86l9f/beginner_requesting_a_code_review_and_advice/fikce5x/?context=3
r/reactjs • u/[deleted] • Feb 23 '20
[deleted] — view deleted post
25 comments sorted by
View all comments
Show parent comment
4
One approach is to extract complex ternarys and conditionals into a function and return the components that need to be rendered. This keeps it modular
View all comments
Show parent comment
4
u/sallystudios Feb 23 '20
One approach is to extract complex ternarys and conditionals into a function and return the components that need to be rendered. This keeps it modular