r/javascript • • Mar 18 '19

What's your favorite, most useful javascript one-liner?

385 Upvotes

422 comments sorted by

View all comments

9

u/geoffgiller8 Mar 18 '19

I love this when using react: this.setState({ toggle: !toggle });

3

u/robolab-io Mar 19 '19

Man, you'd love Vue...