React 16.3.2 Support is here!
NO BREAKING CHANGES. Formik still supports React v15+
What's new? 🍾 🎉
- React 16.3.2 support 💯
- No more dependency on
prop-types
or@types/prop-types
for those using 16.3.2+. Earlier versions are polyfilled thanks tocreate-react-context
- TypeScript 2.8.3
- Exported CommonJS build development version (kind of like React does) with warnings
- **New primitives (for advanced users) that want to hook into Formik context directly:
<FormikConsumer>
this is a render prop that exposes Formik's contextconnect()
an Higher order component that wraps<FormikConsumer>
I am purposefully not documenting the new context helpers, because there shouldn't be any backwards compat issues due to the fact that create-react-context
uses prop-types
under the hood in versions less than 16.
Roadmap 🔭 🚀
- Fix
isSubmitting
- Finish the website and release 1.0
- Rewrite the docs and tutorial
- State reducer / middleware
- TS 2.9 will support JSX Generics. TBD if this should be a breaking change or not, but basically we'll be able to do
<Formik<Values> render={props => }/>
and<Field<Values> name="..." />
. Very very exciting. - Move to a Monorepo and build React Native
<Field>
- Consolidate
<FastField>
into<Field>
, and then deprecate<FastField>
. - Consider removing
form
andfield
from Formik's<Field render>
and just pass through props now thatFormikConsumer
exists. More discussion on this.
Commits (that matter)
- #594 React 16.3