Code Monkey home page Code Monkey logo

react-twitter-props's Introduction

React State & Props: A Twitter Clone

Learning Objectives

  • Improve the maintainability of an app by breaking it down into individual components
  • Pass data to components via props

Setup

  • Fork and clone the repository
  • Run npm ci to install dependencies
  • npm run dev to run the app

Instructions

Inside this project you'll find a Twitter clone react app. The tweets are loaded from an array and placed into some state in the App.jsx component. We're also faking a logged in user and saving their details in state. All of the code is in App.jsx, all of the CSS is in index.css

Core Criteria

Note: All existing functionality should continue to work as intended.

  • Extract the left side, middle and right side into their own components
  • Extract tweets into a component

Extensions

Note: All existing functionality should continue to work as intended.

  1. Extract the create tweet form into its own component. It should still be able to add new tweets into the list of tweets.
  2. Identify and extract other elements that can become components, for example:
    • The items under the "What's happening" section
    • The profile cards under the "Who to follow" section (hint: this could also be used to render the currently logged in user's card in the bottom left of the screen)
    • The tweet actions (like, retweet, etc.)
  3. Make the search bar functional so that it filters the list of tweets based on what is typed into the input

react-twitter-props's People

Contributors

tzoltie avatar vherus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.