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

True. But I can't come up with an example where I'd use instanceof on react components, can you give me one?
Just wondering .. maybe it's used internally by the library?