snorbi
Handling <input>
Is this a correct way to handle <input> fields?
<input onInput={e => setUserName(e.target.value)} value={userName()} />
Or should I use a ref instead and read the field value when it is needed?
Is there a concept of "controlled input" in solidjs?
Or only "uncontrolled input"?
Thanks.6 replies
Is this a correct implementation? :)
I'm new to both JSX and Solid.
Is this a correct implementation or can it be simplified?
The goal is to render a
<a>
with a customized href
prop, rendering the children
, while passing all other props unmodified.
Thanks.3 replies
Reactive array transformation
What is the correct way to make the result of a filtering+mapping operation on an array reactive?
What should I write instead of the object literal?
What I would like to do is to refactor some code to separate functions but the result to remain "reactive".
Thanks.
6 replies