createStore default value with anonymous function

In react I would do something like:

const [array, setArray] = useState(() => {
  /* some computation */
  return [...data];
});


Can I do something similar with solid?
Was this page helpful?