0.0.6 • Published 7 years ago

react-context-component v0.0.6

Weekly downloads
26
License
MIT
Repository
github
Last release
7 years ago

React Context Component

This is a React component that lets you add things in the context. Put simply, the context feature basically lets you to pass some data through all nodes in the components tree.

This component replaces the need to create many different "Providers", where each Provider does the same job.

For instance, instead of doing this:

<Provider store={store}>
	<GridProvider grid={grid}>
		<WidthProvider width={width}>
	        // some components
        </WidthProvider>
    </GridProvider>
</Provider>

You can do this

import Context from 'react-context-component'

<Context grid={grid} store={store} width={width}>
    // some components
</Context>

Instalation

If you are using yarn: yarn add react-context-component

If you are using npm: `npm i react-context-component

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago