1.0.0 • Published 3 years ago

react-dummy-design-library v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-dummy-design-library

This library was developed to experiment with the following technologies:

  • create-react-library
  • microbundler
  • Typescript and Javascript components in the same repository

NPM JavaScript Style Guide

Install

yarn add react-dummy-design-library

Tests

You can write tests either in JS or TS, either way will work

Running tests

yarn test

Usage

import { Button, Alert } from 'react-dummy-design-library'
import 'react-dummy-design-library/dist/index.css'

const App = () => {
  return <div>
    <Button text="Button in Typscript" />
    <Alert message="Alert message in JS" />
  </div>
}

export default App

Example React App

This repository contains an example React App, that is useful for the developers to try out their components, and leave examples for others on how to use it.

Running the example app to test your components

On the root project

yarn build

On the exampel project

yarn && yarn start

License

MIT © sonikro