react-dependency-inject

1.0.0 • Public • Published

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).

/react-dependency-inject/

    Package Sidebar

    Install

    npm i react-dependency-inject

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    86.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • varghese88