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

fk-react-ui-components

Package Overview
Dependencies
Maintainers
14
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fk-react-ui-components

Step 1 : Create a file in [ Seeds / Plants / Trees ] Step 2 : It should export an Object with component name and story Component [Refer other components] Step 3 : Story Component should return a react component Step 3 : Created file should

latest
Source
npmnpm
Version
5.0.4
Version published
Weekly downloads
16
-5.88%
Maintainers
14
Weekly downloads
 
Created
Source

TO ADD A STORY

Step 1 : Create a file in [ Seeds / Plants / Trees ]
Step 2 : It should export an Object with component name and story Component [Refer other components]
Step 3 : Story Component should return a react component
Step 3 : Created file should be imported in Seeds/index.js or Plants/index.js or Trees/index.js
Step 4 : Story Component should import what ever the component to be showcased from the components dir.
Step 5 : Story should use knobs to customize its props [https://github.com/storybooks/storybook/tree/master/addons/knobs ].

TO ADD A COMPONENT / HOC

Step 1 : Add a component in components dir
Step 2 : Add a story for the component added
Step 3 : Raise a PR against master
Step 4 : Once merged create release TAG

TO USE IT IN ANY REPO

Step 1 : add entry in package.json with https://github.com/Flipkart/react-ui-components.git#<TAG_VERSION_NO>
Step 2 : npm i
Step 3 : import react-ui-components in the working directory

TESTING

Tools

NameDescription
JestA JavaScript library for building user interfaces.
EnzymePredictable state container for JavaScript apps.

Commands

To run all the test cases

npm run test

To run watch mode

npm run test-watch

To collect test coverage information

npm run test-cover

To collect test coverage information and open the info in browser

npm run coverage

FAQs

Package last updated on 09 Oct 2018

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