Skip to content

Commit c3c9208

Browse files
perrin4869erikras
authored andcommitted
Add AsyncTypeahead and Redux example (#266)
1 parent e91ffea commit c3c9208

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ const MyForm = () => (
147147
* [Async Redux Submission](#async-redux-submission)
148148
* [Declarative Form Rules](#declarative-form-rules)
149149
* [Format String By Pattern](#format-string-by-pattern)
150+
* [AsyncTypeahead and Redux](#asynctypeahead-redux)
150151
* [Rendering](#rendering)
151152
* [API](#api)
152153
* [`Field : React.ComponentType<FieldProps>`](#field--reactcomponenttypefieldprops)
@@ -383,6 +384,10 @@ What if you could define rules to update fields when other fields change _as com
383384

384385
Demonstrates how to use the library `format-string-by-pattern` to create input masks for your 🏁 React Final Form fields.
385386

387+
### [AsyncTypeahead and Redux](https://codesandbox.io/s/5m4w2909k)
388+
389+
Demonstrates creating an `AsyncTypeahead` to select github users, while storing the search results in the redux store and the form state (selected github users) via `react-final-form`. Also makes use of the [`setFieldData` mutator](https://github.com/final-form/final-form-set-field-data).
390+
386391
## Rendering
387392

388393
There are three ways to tell `<Form/>` and `<Field/>` what to render:

0 commit comments

Comments
 (0)