React 16.8-17 support (and huge re-write)
v0.13.0
a.k.a. "with a little bit of luck"
With a little bit of luck this should "just work" with any projects already using React 16.8
and up.
BREAKING CHANGES
- Dropped support for react
< 16.8
- All components are now function components
- All components that have state now use hooks
- Upgrade typescript (now only officially supports TS
3.9
and up, but may work with slightly older versions)
As a result of these breaking changes any tests that rely on Roe's component state may need to be updated to use renderer.act
Changes
- Add support for react 17
- Upgrade all dev dependencies
- Minor type improvements
- Components are now only exported as
default
internally - Explicit list of types the
component
prop will accept (if you are using one that is not defined in this release, please open a PR to add it and publish a new patch version)