Is there a preference as when to use props or import data types?

With SolidJS you can export/import createSignal's getter and setter functions between files. How does this compare to passing the getter and setter as props? Thanks
1 Reply
thetarnav
thetarnav2y ago
using the tree structure to pass data is better for ssr this way you are making sure that each request will have it's own copy of state but in client-side only app, it just depends on ergonomics you like