0.9.1 • Published 5 years ago

react-hooks-data-structures v0.9.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

0.9.1

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago