tailwindlabs / tailwindcss-setup-examples

674 stars 173 forks source link

Fix Next.js logging errors to console #82

Open samrobbins85 opened 4 years ago

samrobbins85 commented 4 years ago

Next.js logged errors to the console as an anonymous arrow function was used. This causes Fast Refresh to not preserve local component state. To fix this, I used the same style as in the Next.js documentation, and named the function Index.