@@ -25,6 +25,7 @@ You can also try before you buy with this **[demo on CodeSandbox.io](https://cod
2525- [ Basic] ( https://codesandbox.io/s/zKrK5YLDZ )
2626- [ Building your own input primitives] ( https://codesandbox.io/s/qJR4ykJk )
2727- [ Working with 3rd party input components] ( https://codesandbox.io/s/jRzE53pqR )
28+ - [ Accessing React lifecycle functions] ( https://codesandbox.io/s/pgD4DLypy )
2829
2930---
3031
@@ -300,7 +301,7 @@ Formik is a Higher Order Component factory; you can use it exactly like React Re
300301You can assign the HoC returned by Formik to a variable (i.e. ` withFormik ` ) for later use.
301302``` js
302303import React from ' react' ;
303- import Formik from ' formik' ;
304+ import { Formik } from ' formik' ;
304305
305306// Assign the HoC returned by Formik to a variable
306307const withFormik = Formik ({... });
@@ -321,7 +322,7 @@ You can also skip a step and immediately invoke Formik instead of assigning it t
321322
322323``` js
323324import React from ' react' ;
324- import Formik from ' formik' ;
325+ import { Formik } from ' formik' ;
325326
326327// Your form
327328const MyForm = (props ) => (
@@ -339,7 +340,7 @@ Lastly, you can define your form component anonymously:
339340
340341``` js
341342import React from ' react' ;
342- import Formik from ' formik' ;
343+ import { Formik } from ' formik' ;
343344
344345// Configure and call Formik immediately
345346export default Formik ({... })((props ) => (
0 commit comments