This project is designed to help you practice building React components and passing props. You will create a simple app with two custom components that each accept at least 2 props.
- Open up your favorite code editor (e.g., VSCode), and clone this repository:
git clone https://github.com/chaser164/react-props-pset - From the VSCode command line, in the root directory of the cloned repository, call
npm installto ensure all dependencies are ready to go. - Call
npm run devand then navigate to the displayed localhost URL to see what this project looks like so far. - Using
CustomButton.jsxandCustomButton.cssas inspiration, make 3 additional custom components (i.e. 3 additional.jsxfiles and 3 additional.cssfiles). - In each custom component, accept at least 2 props and use them to influence the components' behaviors in meaningfuls ways.
- Import and call the 3 components inside
App.jsx. - Ensure everything is working accordingly by re-running
npm run dev.
Please make a screen recording through Zoom or any other screen-recording application of your choice. Walk us through both the code you wrote for this project as well as the visual output. Upload this video walkthrough to a video sharing service of your choice (unlisted YouTube video, Google Drive, etc.) and submit the share link here. This is all you have to do for the submission!
- Text content and background color for a card.
- A name and age for a user profile component.
- URL prop that embeds a link.
Happy coding!