Today we are going to make a reference application for React with React! Each component will explain a React topic. Take the time to read documentation and articles about each subject. Make this a reference for yourself!
- Create a new react app using
create-react-app react-reference
cd
into your new app and open it in VS code- Start the app with
npm start
Create the following components:
- A
Header
component with:- A title for the page (maybe something like 'React is Awesome!')
- An image
- A
Content
component that serves as a container with:- A component called
ComponentInfo
that has:- A title
- Content that explains what components are and how to use them.
- The following child components (you will have to create them)
- A
PropsInfo
component with- A title
- A definition of what props are and how to use them in components
- A
StateInfo
component with- A title
- A definition of what state is and how to use it.
- A
LifeCycleInfo
component with- A title
- A list of the component lifecycle methods
- A
- A component called
JSXInfo
that has:- A title
- An explaination of of JSX and how it is used.
- A component called
- A
Footer
component with some helpful resources. Here are a few to get you started, but include at least one that is not on this page!
Header
Content
ComponentInfo
PropsInfo
StateInfo
LyfeCycleInfo
JSXInfo
Footer
Homework is due by 12:00 Tonight!