Replies: 1 comment 4 replies
-
Few things:
Did you forget some code? This doesn't seem like a "class component" to me. You forgot to tell us what's the expected behaviour for you 😅 What's incorrect or correct for you, given the examples you showed us? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I’ve noticed different behavior of the Biome linter for class components versus functional components in React. Or maybe it’s just me, and I simply didn’t understand it correctly. Either way, here’s the scenario:
In a class component, with the code below, Biome doesn't provide any feedback:
In a functional component, with the code below, Biome tells me that the variable or function is unused:
I searched online but didn’t find any relevant information. Maybe this is expected behavior, but I need a way to identify unused functions in class components.
I hope this makes sense.
Thank you for your attention!
Beta Was this translation helpful? Give feedback.
All reactions