props-provider
v1.1.4
Published
React Component for passing props to dynamic children
Downloads
11
Maintainers
Readme
PropsProvider
React Component for passing props to dynamic children
Introduction
The PropsProvider
component primarily allows components to defer rendering details to their children. This allows for a higher degree of component reuse when those aspects are not intrinsically tied to each other.
This same concept already being used in many widely adopted libraries. For example, React Router v4 uses this idea to allow for deferred rendering of links. The advantage to using this component is standardization of the concept as well as additional functionality.
Table of Contents
Installation
Install as you would any other NPM dependency
npm install props-provider