elisechant / react-highcharts-hoc

A HOC to reactify Highcharts for you app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Highcharts Higher Order Component

Build Status

A HOC to reactify Highcharts for you app.

Problems this library sets out to solve

  1. Highcharts does not translate to the ES6+ ecosystem, as the Highcharts constructor is not global. Therefore, you can not apply application wide configuration to Highcharts.

  2. Highcharts depends on the DOM existing to render.

Getting started

  1. Add the module to your React app:

npm install react-highcharts-hoc

  1. Follow the instructions how to use it (coming soon).

HOC provides the service Often they don't have names that remind you on a connection between the HOCs and the services they connect.

context instead, can get delivered by any ancestor component. Like ServiceProviderA in our example. But React now doesn't simply pass the context to every child component, you have to explicitly ask for it. And this asking is what you can implement in a HOC.

https://dev.to/kayis/higher-order-with-context

About

A HOC to reactify Highcharts for you app.

License:MIT License


Languages

Language:JavaScript 76.3%Language:HTML 23.7%