BlackCaesar
BlackCaesar
SSolidJS
Created by BlackCaesar on 11/30/2022 in #support
How to move these divs?
Hi there I'm new solid and somewhat new to programming as well. I have a question https://playground.solidjs.com/anonymous/8bf7649a-04f9-478d-be34-13d0a8e80e7a Basically the add button adds an element to the array signal which then gets looped over to make Ball components. The createEffect of the Ball positions the divs according to the props received. Now I'd like the move button to loop throught the array and change properties thus moving all the Ball divs. In react I could just add a dependency array to rerun useEffect everytime the props change. I'm not sure how to do this in solid
5 replies