r/badcode • u/atheniyi • Jul 31 '21
js Super important required react prop that does absolutely nothing.
Component would render nothing without this prop it doesn't use
this "feature" is so important that there's a test for it
68
Upvotes
6
u/ZedTT Aug 01 '21
"well the unit tests say so"
5
u/e110co Aug 01 '21
And height is also not used but hard coded
3
u/MrClottom Aug 01 '21
How do people still not use linters?
2
u/Blackhaze84 Aug 01 '21
After watching this post 100 libraries must be updated
1
u/cuboidofficial Aug 01 '21
How do you get the => to look like that?
12
u/[deleted] Aug 01 '21
[removed] — view removed comment