New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-module-loader

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-module-loader

Loads ES6 modules (functions, etc) within a React component as a procedurally generated interactive view element

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

NPM

React Module Loader

Loads ES6 modules (functions, etc) into interactive React component views.

Allows bootstrapping a set of functions (properly exported as ES6 modules & documented with a JSDOC AST), into an auto-generated input interface, which is reusable & composable for myriad use-cases.

Linted with ESLint and tested with Mocha, Enzyme and JSDOM.

There is also ES6 transpilation.

Usage

via NPM

  • Install the package npm install --save react-module-loader
  • Include package into your app with: import ReactModuleLoader from 'react-module-loader
  • Add ReactModuleLoader to your render() method.
  • You must pass the element 3 props:
    • A mount prop (the parent object that is a properly exported ES6 module)
    • A functionsKeyName prop (the keyname of the child object of mount that holds the actual functions themselves).
    • A astKeyName prop (the keyname of a the child object of mount that is a jsdoc-generated JSON AST, exported as a module).

Relevant blog post:

  • Auto-Generating React Components from ES6 Modules (blog post coming soon.)

Also check out:

License

MIT

Keywords

react

FAQs

Package last updated on 08 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts