SolidJSS
SolidJSโ€ข3y agoโ€ข
5 replies
TorHammare

Store for binary tree object

How should i use store to dynamically render content from my binary tree?
class Node<T> {
  left: Node<T> | null;
  right: Node<T> | null;
  value: T | null;

  append(node: Node<T>){...}
  remove(){...}
}

I plan to have different components/jsx-elements as value. I prefer not to edit the append function, by for example, call the setter given by createStore().

Perhaps I should look more into createEffect?

I've been looking at the API and tutorial but I'm not sure how to start. Other examples and links are appreciated
Was this page helpful?