1.0.5 • Published 2 years ago
reba-shapes-challenge v1.0.5
reba-shapes-react
npm i reba-shapes-challenge
import { Triangle, Square, Circle, Hexagon } from "reba-shapes-challenge";
color="your color here" onClick="only works if clicked on keyboard"
example: <Square color="green" onClick={() => setText("Square Clicked")} />
live test: https://reba-shapes-challenge.netlify.app/ live test source code: https://github.com/patryk-reba/shapes-challenge-test-app