Skip to content

Commit 9dd22d5

Browse files
committed
Add link to demo of componentWillReceiveProps
1 parent 7132a34 commit 9dd22d5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
300301
You can assign the HoC returned by Formik to a variable (i.e. `withFormik`) for later use.
301302
```js
302303
import React from 'react';
303-
import Formik from 'formik';
304+
import { Formik } from 'formik';
304305

305306
// Assign the HoC returned by Formik to a variable
306307
const withFormik = Formik({...});
@@ -321,7 +322,7 @@ You can also skip a step and immediately invoke Formik instead of assigning it t
321322

322323
```js
323324
import React from 'react';
324-
import Formik from 'formik';
325+
import { Formik } from 'formik';
325326

326327
// Your form
327328
const MyForm = (props) => (
@@ -339,7 +340,7 @@ Lastly, you can define your form component anonymously:
339340

340341
```js
341342
import React from 'react';
342-
import Formik from 'formik';
343+
import { Formik } from 'formik';
343344

344345
// Configure and call Formik immediately
345346
export default Formik({...})((props) => (

0 commit comments

Comments
 (0)