© 2026 Hedgehog Software, LLC
const [store, setStore] = createStore({ points: [ { x: 50, y: 50 }, { x: 100, y: 100 }, ], });
function updatePoint(i: number) { setStore("points", i, () => ({ x: Math.random() * 200 + 20, y: Math.random() * 200 + 20, })); }
createEffect(() => { console.log('array of points', store.points); }); createEffect(() => { console.log('individual points', store.points[0], store.points[1]); });
Join the Discord to ask follow-up questions and connect with the community
Solid is a declarative reactive Javascript library for creating user interfaces.
12,260 Members