1.0.6 โ€ข Published 2 years ago

ez-react-lib v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Welcome to ez-react-lib

About

Description - Helper package containing a variety of react based components to speed up and ease the development process.

Author - Daniel Scott

Features

  • Typescript support ๐Ÿ’ช
  • Testing support via jest ๐Ÿงช
  • Easy to use ๐Ÿ› ๏ธ
  • Time saver โŒš

Usage

// Import component at head of file
import { Card } from 'ez-react-lib';
import styles from './index.module.scss';

// Render component inside jsx body
const Home: NextPage = ({ data }) => {
  const handleClick = () => {
    if (isMember) {
      window.location.push('/members-only');
    }
  };

  return (
    <>
      <Card
        name={'Merch to Sell'}
        category={'Shirts'}
        price={'420'}
        imgSrc={'your/mums/house'}
        classOverride={styles.sexyCard}
        onClick={handleClick}
      />
    </>
  );
};

export default Home;
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago