Skip to content

georggrab/hierarchical-list

Repository files navigation

Hierarchical List

Implementation of a hierarchical list structure in React & Redux.

Check it out!

Functionality Overview

Features

  • Transform recursive input Json into flat immutable data structure
  • Expand and collapse subhierarchies
  • Reset data

Technologies used

scaffolding

The project was bootstrapped with create-react-app.

unit tests

Unit tests are executed with jest. For testing the react components, enzyme is used. For testing with redux, redux-mock-store is used.

static type checking

Static type checking is provided by flow.

state management

State management is provided by redux. For organizing the state, the redux ducks proposal was followed. Immutable data structures courtesy of immutable.js are used in the store.

side effect model

For side effect management redux-saga is used. Strictly speaking, this is not required for the project (as the input json is not required to change, we could just import the json through webpack), but I figured loading the json asynchronously makes the project a bit more exciting.

css preprocessor

Sass is used as a CSS preprocessor.

isolated component development

Storybook is used for isolated component development, though this would not have been strictly necessary, as there are very few components in the App.

Usage

Nothing out of the ordinary here:

Running

yarn install
yarn start

Executing Unit tests

yarn test

Releases

No releases published

Packages

No packages published