Skip to content

Commit eccf9cd

Browse files
committed
Added link to example
1 parent 5b1f2c4 commit eccf9cd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,33 @@ const undecorate = decorator(form)
6161
// Use form as normal
6262
```
6363

64+
## Table of Contents
65+
66+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
67+
68+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
69+
70+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
71+
72+
* [Example](#example)
73+
* [Calculated Fields Example](#calculated-fields-example)
74+
* [API](#api)
75+
* [`createDecorator: (...calculations: Calculation[]) => Decorator`](#createdecorator-calculations-calculation--decorator)
76+
* [Types](#types)
77+
* [`Calculation: { field: FieldPattern, updates: Updates }`](#calculation--field-fieldpattern-updates-updates-)
78+
* [`FieldName: string`](#fieldname-string)
79+
* [`FieldPattern: FieldName | RegExp`](#fieldpattern-fieldname--regexp)
80+
* [`Updates: { [FieldName]: (value: any, allValues: Object) => any }`](#updates--fieldname-value-any-allvalues-object--any-)
81+
82+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
83+
84+
## Example
85+
86+
### [Calculated Fields Example](https://codesandbox.io/s/oq52p6v96y)
87+
88+
Example using
89+
[🏁 React Final Form](https://github.com/final-form/react-final-form#-react-final-form).
90+
6491
## API
6592

6693
### `createDecorator: (...calculations: Calculation[]) => Decorator`

0 commit comments

Comments
 (0)