I created a context system in SolidJS for forms
export const FormContext = createContext<Form>();
export interface Form {
data: any;
set: (data: any) => void;
validationResult: Accessor<Joi.ValidationResult<any> | undefined>;
touched: Accessor<TouchedData>;
setFieldValue...