← Home

Tag: solidjs

Solid - useContext

@date=2023-08-21
@tags=solidjs

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...

READ MORE (114 words, 1 minutes)