Photo by Theo Crazzolara on Unsplash

Spot the Bug: Function Curry

Jack Taylor

--

In this instalment of ‘Spot the Bug’, we have a simple React toggle component which switches between active and inactive when clicked. However, it’s not working as expected. Can you see what the problem is?

--

--

Jack Taylor

I am a UI developer writing about JavaScript, React and tech in general. Currently working at Pleo.