DEV Community


Discussion on: React Clean Code - Simple ways to write better and cleaner code

davejsaunders profile image
Dave Saunders

This is great, thank you.

I didn't know about #1, and always hated the ternary with the null at the end.
Now I can go back and fix them allπŸ™‚

thawkin3 profile image
Tyler Hawkins Author

You're welcome. Glad this helped!

travisblair profile image
Travis Blair

It's a really nice shortcut that I'm a big fan of, but be aware of the gotchas that come along with it!