diff --git a/packages/react-renderer-demo/src/examples/components/examples/value-listener.js b/packages/react-renderer-demo/src/examples/components/examples/value-listener.js index 6a0ca64e7..9546811cd 100644 --- a/packages/react-renderer-demo/src/examples/components/examples/value-listener.js +++ b/packages/react-renderer-demo/src/examples/components/examples/value-listener.js @@ -21,7 +21,7 @@ const FieldListener = () => { return null; }; -const FieldListenerWrapper = () => {() => }; +const FieldListenerWrapper = () => {() => }; const schema = { fields: [ diff --git a/packages/react-renderer-demo/src/pages/examples/value-listener.md b/packages/react-renderer-demo/src/pages/examples/value-listener.md index 89eb28680..c45685f9e 100644 --- a/packages/react-renderer-demo/src/pages/examples/value-listener.md +++ b/packages/react-renderer-demo/src/pages/examples/value-listener.md @@ -3,7 +3,6 @@ import CodeExample from '@docs/code-example'; - # Value listener This example shows how to update a value of one field according to a value of others without using the set [condition](/schema/condition-set). @@ -12,7 +11,7 @@ This example shows how to update a value of one field according to a value of ot Basically you have to just a set up a new component, that will listen to the form state and updates the intended fields. -**FormSpy** with a correct subscription ensures that the component will be always updated. You can also set the [subcription](/components/renderer#subscription) on the form level in the form renderer. +**FormSpy** with a correct subscription ensures that the component will be always updated. You can also set the [subscription](/components/renderer#subscription) on the form level in the form renderer. **hideField** ensures that the listener component is not visible in the dom and it won't affect the form layout. @@ -26,4 +25,4 @@ Basically you have to just a set up a new component, that will listen to the for - \ No newline at end of file +