Skip to main content

Persistent State

This example demonstrates subscribing to form state changes to persist field values to LocalStorage as an "autosave" mechanism.

import {FormProvider, fields} from '10xjs/form';import {useEffect, useState, useRef} from 'react';
Live Editor
Result
SyntaxError: No-Inline evaluations must call `render`.