re: The 10 Component Commandments VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thank you @selbekk for the thorough "10 component commandments". What are some of your favorite tips for creating cool components? I am not su...
 

also found useful this pattern as more declarative, but need to use it carefully. my early pitfall was to use array.length && ... instead of array.length === 0 && ...

 

What about just using !!array.length && ... ? It looks smarter and short.

 

What about just using
!!array.length && ...?
It looks smarter and shortly.

yep, it's shorter :) use !! many years while coding on perl. now I prefer Boolean(array.length)

code of conduct - report abuse