react-browser-to-props
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    react-browser-to-props

    A HOC Components with Web API support for React Components

    Why react-browser-to-props?

    The main goal of this package is to deliver High Order Component which consumes daily use WebAPIs such as LocalStorage, Cookie Storage, and some common utility functions such as reading the query params, that can fit into any kind of project with no muss, no fuss.

    Demo

    Check the Month picker in action, click here.

    Install

    You can use either the npm or yarn command-line tool to install packages. Use whichever is appropriate for your project in the examples below.

    NPM

    npm install --save react-browser-to-props

    YARN

    yarn add --save react-browser-to-props
    

    Usage

     
    import BrowserToProps from 'react-browser-to-props';
     
    const App = (props) => {
      console.log(props)
      return (
        <div>
          Check the console
        </div>
      );
    };
     
    const NewComponent = BrowserToProps(App);
     
    ReactDOM.render(
      <NewComponent />,
      document.getElementById('root')
    );

    Thanks

    This Project is build using tsdx.

    License

    MIT © ShankyTiwari

    Install

    npm i react-browser-to-props

    DownloadsWeekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    40.7 kB

    Total Files

    18

    Last publish

    Collaborators

    • shankytiwari