Skip to content

Commit

Permalink
Added strongly typed TS example
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Jun 14, 2019
1 parent 23cfc53 commit f8ca858
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const MyForm = () => (
- [Third Party Components](#third-party-components)
- [Material-UI 3.0](#material-ui-30)
- [💥 Performance Optimization Through Subscriptions 💥](#-performance-optimization-through-subscriptions-)
- [Strongly Typed Form and Field Values with TypeScript](#strongly-typed-form-and-field-values-with-typescript)
- [Independent Error Component (with Render Props)](#independent-error-component-with-render-props)
- [Independent Error Component (with Hooks)](#independent-error-component-with-hooks)
- [Loading and Initializing Values](#loading-and-initializing-values)
Expand Down Expand Up @@ -318,6 +319,10 @@ Yet, if some part of form state is needed inside of it, the
[`FormSpy`](#formspy--reactcomponenttypeformspyprops) component can be used to
attain it.

### [Strongly Typed Form and Field Values with TypeScript](https://codesandbox.io/s/strongly-typed-form-values-with-react-final-form-26jkd)

Demonstrates how to use JSX generics to strongly type fields, forcing only a component that can accept the type for that field.

### [Independent Error Component (with Render Props)](https://codesandbox.io/s/xoo3xq654p)

Demonstrates how to make an independent Error component to subscribe to and
Expand Down

0 comments on commit f8ca858

Please sign in to comment.