S
SolidJS2y ago
Barel

looking for better solid solution

Hi I have this app that I making about create a food menu. I want to add to my list of foods for specific meal an ingredient. Currently I use naive approach that uses simple getting the value from button click. wanted to know if there is better why or more solidjs API for this instead. I saw there is createComputed and a lot more of other cool reactive function so I have wander how can I this power of reactivity inside my app more. Hope for suggestion or examples you know, I found the API doc little bit lucking of examples and implementation how should I use this functions for me. really hope this one will improve
2 Replies
thetarnav
thetarnav2y ago
adding a new item in an click action is much better then using createComputed for that. createComputed is more of an escape hatch for when the data just cannot be derived or updated in an action
Barel
BarelOP2y ago
Hi thanks for answering. Good to know I am doing something good
Want results from more Discord servers?
Add your server