Skip to content

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

Notifications You must be signed in to change notification settings

life-of-dan/ez-react-lib

Repository files navigation

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;

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published