An open API service indexing awesome lists of open source software.

https://github.com/codenameyau/react-cartesian

React Cartesian Product component
https://github.com/codenameyau/react-cartesian

cartesian cartesian-product component react

Last synced: 2 months ago
JSON representation

React Cartesian Product component

Awesome Lists containing this project

README

          

# react-cartesian

React Cartesian Product component. This will render all possible prop
combinations for a component and is useful in conjunction with storybook.
https://www.npmjs.com/package/react-cartesian

## Features

![screenshot](https://user-images.githubusercontent.com/3826772/75525605-2402da80-59de-11ea-99cb-7845e15b1e68.png)

Can copy JSX of component with a single click.

## Getting started
```bash
npm install --save react-cartesian
```

```bash
yarn add react-cartesian
```

### Usage
```js
import React from 'react';
import Cartesian from 'react-cartesian';

const ExampleCartesian = () => {
return (

)
};
```

## Publishing to NPM
Here's how to publish this package to NPM.

### Automated
Run this script on a **clean branch** and enter two factor code.

```bash
npm run deploy
```

### Manually
You can also publish manually by running these steps.

```bash
# Run unit tests.
npm run test

# Build module.
npm run build

# Bump patch version.
npm version patch

# Publish package to npm with two factor code.
npm publish
```