Overview Module is a React component for HackReactor's Front-end Capstone Project.
This component renders
- photo gallery
- product information
- style selectors
using data from the external API.
npm install overview-module
Import Overview into your top level component, render it and pass down the props.
apiIP
: StringproductId
: Number
stars
: a component
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 />} />
);
};