Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

toClass()

Compare
Choose a tag to compare
@acdlite acdlite released this 02 Nov 19:18
· 552 commits to master since this release

New helper that converts a function component to a class component. Might be useful if you need a ref.

Also added a helper isClassComponent() that returns whether a component is a React component class.

Thanks @haradakunihiko @py-in-the-sky and @istarkov for your help!