I'm currently learning data structures on my own. Most websites provide an implementation using classes and I'm unable to find an implementation using functions for functional components.
I want to learn how to implement a linkedlist using Typescript in a functional component in React.
interface Node<T> { value: T, next: Node<T> | null }. Now you need to define functions that deal with this, like anfunction append<T>(Node<T>, value: T): Node<T>. Which will have the same logic you'd have if you had a class but it's not a method.