# @jhohman/react-components

> UI components for React

Latest version **0.1.7** (published 2018-01-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jhohman/react-components
pnpm add @jhohman/react-components
yarn add @jhohman/react-components
bun add @jhohman/react-components
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2018-01-25 |
| First published | 2018-01-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Hohman |
| Maintainers | jhohman |
| Keywords | react, react-component, react-ui, bootstrap |

## Links

- npm: https://www.npmjs.com/package/@jhohman/react-components
- Repository: https://hohmanjl@bitbucket.org/hohmanjl/react-components
- Homepage: https://bitbucket.org/hohmanjl/react-components
- Issues: https://bitbucket.org/hohmanjl/react-components-demo/issues
- npm.io page: https://npm.io/package/@jhohman/react-components

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2018-01-25
- 0.1.6 — 2018-01-24
- 0.1.5 — 2018-01-22
- 0.1.4 — 2018-01-20
- 0.1.3 — 2018-01-20
- 0.1.2 — 2018-01-16
- 0.1.1 — 2018-01-14

## README

# React Components

A suite of Redux powered React UI components.

## Install

```
npm install --save @jhohman/react-components
```

## Live Demo

* http://jhohman-react-components.surge.sh/

## Usage

A brief summary of usage. See the demo site for more information.

```jsx harmony
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';

// Minimum tree styles
import '@jhohman/react-components/css/Tree.min.css';

import { 
  Tree,  // Component
  treeReducer,  // Reducer is always component name + Reducer.
  TREE_EXPANDED,  // You must use this constant for expanded
  TREE_COLLAPSED   // You must use this constant for collapsed
} from '@jhohman/react-components/Tree.min';

const store = createStore(treeReducer);

const tree = {
  id: 'root',
  label: 'root',
  children: [  // Required at root.
    {
      id: 'element1',
      label: ...,
      children: [  // Optional, everywhere else
        {
          id: 'element1.1',
          label: ...,
          children: ...
        }
      ]
    },
    ...
    {
      id: 'elementN',
      ...
    }
  ]
};

render(
  <Provider store={store}>
    <Tree
      name="myTree"
      selectCallback={selectCallback}
      tree={tree} />
  </Provider>,
  document.body
);
```

## Repos

View the repos at the following links:

* [react-components](https://bitbucket.org/hohmanjl/react-components)
* [react-components-demo](https://bitbucket.org/hohmanjl/react-components-demo)

---
_Source: https://npm.io/package/@jhohman/react-components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
