DEV Community

loading...

Discussion on: Tailwind + React: Setup and Design Patterns

Collapse
halcika7 profile image
Haris Beslic

Thank you for this great article. Just one small addition for onClick method.. should be () => setActive(prev => !prev) because it depends on previous value.

Collapse
rfitz profile image
Ryan Fitzgerald Author

Not a problem and great catch, I'll fix that up!