martinmasa / react-playground

Playground repo to learn and try out React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Playground

Repo to learn and try out React.

This project was bootstrapped with Create React App.

Setup

Install dependencies

npm install

Run development server

npm start

Run tests

npm test

Build for production

npm run build

Can also use yarn instead of npm.


Components

Welcome

  • src/components/Welcome
  • Basic React Component (function) with props, propTypes and defaultProps.
  • Renders "Hello {name}!" or "Hello World!" if name property is not provided.

Clock

  • src/components/Clock
  • Basic React Component (class) demonstrating use of constructor, state, lifecycle methods (componentDidMount & componentWillUnmount).

Counter


TicTacToe

About

Playground repo to learn and try out React.


Languages

Language:JavaScript 84.5%Language:HTML 10.3%Language:CSS 5.2%