/Counter-App

Primary LanguageJavaScript

Getting Started with Create React App

This project was bootstrapped with Create React App.

Learned Lessons

  • Genereate projects with command npx create-react-app app-name
  • Create simple components with props
  • Assign default values and types to props with PropTypes
  • Use of first Hook with useSate
  • First approach to Unit Tests on Vanilla JS using Jest
    • Validate functionality of simple functions
    • Validate functionality of async functions
  • First approach to Unit Tests focused on React using Enzyme
    • Take snapshots of components
    • Validate value in DOM elements
    • Get elements of DOM with selectors
    • Simulate click events on buttons

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.