Hooks
useFieldsPopulated

Import this in your client-side component

MyComponent.tsx
import { useFieldsPopulated } from "react-amazing-hooks";

API

ApiDescriptionTypeReturn TypeExample
useFieldsPopulatedCustom hook that checks if all fields in an object are populated and contain non-empty valuesfields: FieldsStatebooleanconst fieldsPopulated = useFieldsPopulated(fields);

Check the FieldsState in the 'Types' tab.