SolidJSS
SolidJSโ€ข2w agoโ€ข
1 reply
Hussein

reactive ref

function Comp() {
  let ref!: HTMLInputElement;

  createEffect(() => {
    console.log(ref.value);
  });

  return <input ref={ref} />;
}

can i make this reactive?
Was this page helpful?