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

ez-react-lib

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ez-react-lib

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

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

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;

Keywords

react

FAQs

Package last updated on 30 Jul 2022

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