# react-fx-granularity-dd

> React dropdown component list of forex Oanda granularities. e.g. H1,H4,D

Latest version **1.1.0** (published 2019-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-fx-granularity-dd
pnpm add react-fx-granularity-dd
yarn add react-fx-granularity-dd
bun add react-fx-granularity-dd
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-09-16 |
| First published | 2019-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fespiritu |
| Maintainers | fespiritu |

## Links

- npm: https://www.npmjs.com/package/react-fx-granularity-dd
- Repository: https://github.com/fespiritu/react-fx-granularity-dd
- Homepage: https://github.com/fespiritu/react-fx-granularity-dd#readme
- Issues: https://github.com/fespiritu/react-fx-granularity-dd/issues
- npm.io page: https://npm.io/package/react-fx-granularity-dd

## Recent versions

- 1.1.0 (latest) — 2019-09-16
- 1.0.0 — 2019-09-15

## README

# react-fx-granularity-dd

> React dropdown component list of forex Oanda granularities. e.g. H1,H4,D

[![NPM](https://img.shields.io/npm/v/react-fx-granularity-dd.svg)](https://www.npmjs.com/package/react-fx-granularity-dd) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-fx-granularity-dd
```

## Usage

```jsx
import React, { Component } from 'react'
import OandaGranularityDD from 'react-fx-granularity-dd'

export default class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
        instrument: '',
        granularity: 'H4'
    }

    this.handleChangeEvent = this.handleChangeEvent.bind(this);
  }

  handleChangeEvent(e) {
    const { name, value } = e.target;
    
    this.setState({
        [name]: value
    });
  }
  render () {
    const { granularity } = this.state;

    return (
      <div>
        <OandaGranularityDD granularity={granularity} onChangeEvent={this.handleChangeEvent} /> 
      </div>
    )
  }
}

```

## License

MIT © [fespiritu](https://github.com/fespiritu)

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