annthespy / overview-module

A reusable React component for FEC project for building gallery and photo carousel

Home Page:https://www.npmjs.com/package/overview-module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

version

Overview Module

Overview Module is a React component for HackReactor's Front-end Capstone Project.

Features

This component renders

  • photo gallery
  • product information
  • style selectors

using data from the external API.

Installation

npm install overview-module

Usage

Import Overview into your top level component, render it and pass down the props.

Required props

  • apiIP : String
  • productId : Number

Optional props

  • stars : a component

Example

import React from "react";
import Overview from "overview-module";
import Stars from "./components/Stars";

const App = () => {
  return (
    <Overview apiIP={"http://3.21.164.220"} productId={1} stars={<Stars />} />
  );
};

About

A reusable React component for FEC project for building gallery and photo carousel

https://www.npmjs.com/package/overview-module


Languages

Language:JavaScript 67.5%Language:SCSS 31.4%Language:HTML 1.1%