Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 2.71 KB

README.md

File metadata and controls

36 lines (25 loc) · 2.71 KB

React Chat Log

In this project we will use core React concepts to build a chat messenger-style application that displays a log of chat messages between two people, using static data from a JSON file. We will build user interaction with a like feature.

Skills Assessed

  • Building React components that receive data through props
  • Building React container components that pass information to their subcomponents
  • Initializing and using state within a component
  • Passing callback functions to child components and using them to update state
  • Practicing reading and running tests
  • Using git as part of the development workflow
  • Demonstrating understanding of the front-end layer, and the relationship between user interaction and the UI

Project Outline

This project comes with a minimal scaffold based on the baseline React application generated by vite. We provide the JSON file with static chat message data and the CSS styles, and you will need to implement all of the components except for the provided TimeStamp component.

React Chat Log demo

Project Directions

Testing

The tests for this project are a mix of unit tests (Waves 01 and 02) and integration tests (Wave 03). The directions for each wave include a section about the tests for that wave. The unit tests provided for Wave 01 and Wave 02 require us to be prescriptive around component and prop names. The integration tests for Wave 03 allow for more freedom in the implementation details of this wave's feature. To run the project tests in VS Code, you will need to have installed the Vitest extension by Vitest from the extensions marketplace.

Writing front-end tests is outside the scope of the core curriculum. We provide minimal tests for this project for a few reasons. We can use these tests to partially verify the correctness of our code. Tests support the refactoring process and enforce consistency in implementation details. Additionally, by reviewing these front-end tests, we have some exposure to what unit tests and integration tests look like in front-end testing.

Follow your curiosity to learn more about front-end testing: