1.0.0 • Published 6 years ago

react-dependency-inject v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Redux-Dependency-Inject

React dependency inject enables to inject dependencies to component without import into it

Here is the sample

# Set dependency
import { setDI } from 'react-dependency-inject';

setDI({isFn:(fn) => fn && typeof fn === 'function'});
# Inject Dependency

import { withDI } from 'react-dependency-inject';

export default withDI(App);

Varghese John:

License

Code licensed with the MIT License (MIT).