Have you ever needed a form where changing one field updates the options of another? Like selecting a category and seeing subcategories automatically update?
Most developers reach for useEffect + manual state management. But there's a better way.
The Problem
Let's say you have two autocomplete fields:
Category - static options
Subcategory - depends on category, loads dynamically
The traditional approach requires:
Tracking category changes
Triggering updates when category changes
Manual state management for loading/error states
Clearing subcategory when category changes
Managing async operations
It gets complex fast when you add more dependencies.
The DashForge Solution
DashForge uses reactions - a declarative way to handle field dependencies:
import { useState } from " react " ; import { DashForm } from " @dashforge/forms " ; import { Autocomplete } from " @dashforge/ui " ; import { Box , Button , Card , Stack , Typography } from " @mui/material " ;
interface FormValues { category : string |β¦