Back to results
bloominstituteoftechnology/React-Insta-Clone(opens in a new tab)
Language: JavaScript
- stars
- 59
- watchers
- 21
- forks
- 1,390
- open issues
- 594
- Last updated
- 08/26/2020
Language: JavaScript
The purpose of this project is to continue building on your knowledge of React that you have gained thus far.
create-react-app (CRA) utility to generate your React project for you.This project will be worked on throughout the entire week.
For this project, you'll be building a simple Instagram clone using React.
There is a file provided called dummy-data.js that contains some mock data. Each object in the mock data represents a faux Instagram post.
Your React application will receive faux post data and render each as a separate Instagram post.
npx create-react-app instagram-app from inside this directory.instagram-appcomponents directory inside the src directory, and then create a sub-directory called SearchBar, another one called PostContainer, and lastly one called CommentSection, all inside the src directory. Each of these directories should contain the component file as well as the CSS for their respective components. You'll also want to put any other components that coincide with your respective container components inside of these directories.dummy-data.js file.dummy-data.js file with import dummyData from './dummy-data'; and iterate over said data, passing each individual object as a prop to an instance of PostContainer.PostContainer component will then pass the array of comments on each post object as a prop to an instance of the CommentSection component.CommentSection component will receive the array of comments as props and render a Comment component with the username of the poster as well as the post's text. Additionally, there should be an input box that allows users to submit a new comment for any post. We'll work on posting new comments tomorrow.Types of the data you are passing around as props in the components that will be using props to present data as DOM elements. This should be linked to your Comment component that Comment Section will render and potentially to your Post component that Post Container will render.Your search bar header should look something like this:

Your post container should look something like this:

Add a comment... input.