← 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)

Back to solidjs

@date=2023-06-12
@tags=coding, svelte, solidjs

I delved into svelte pretty deep to get a grasp of it. I decided to try to make a set of components similar to material UI, just focusing on form elements.

When it came to passing values, references, functions up and down the component stack, it just became much more difficult than doing it in...

READ MORE (163 words, 1 minutes)