How to have reactive getters on each element?
Let's say I have a
createStore
, and I want each element to have a getter, how should I go about this?
I asked chat gpt, and he proposed this.
I think this looks ok enough, do you guys agree? Is there an alternative that lets you include getters right into the data I pass to createStore
?3 Replies