Y
Hacker News
new
|
ask
|
show
|
jobs
by
peterhunt
4245 days ago
If you wrap the class in createFactory() then you break instanceof; how is this fine?
1 comments
spion
4245 days ago
True. But I can't come up with an example where I'd use instanceof on react components, can you give me one?
link
mateuszf
4245 days ago
Just wondering .. maybe it's used internally by the library?
link