0.9.1 • Published 4 years ago

react-hooks-data-structures v0.9.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

React Hooks Data Structures

The purpose of this project is to bring you basic data structures through React hooks.

Installation

Use the package manager npm to install react-hooks-data-structures.

npm i react-hooks-data-structures

Usage

import { useLinkedList } from 'react-hooks-data-structures/LinkedList';


const SomeComponent = (props) => {
  const linkedList = useLinkedList();

  const handleClick = useCallback((evt) => {
    linkedList.add(evt.target.value);
  }, []);

  return (
    <>
      {linkedList.map((value, idx) => <Item key={idx}>{value}</Item>)}
    </>
  )
}

License

MIT

0.9.0

4 years ago

0.9.1

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago