An open API service indexing awesome lists of open source software.

https://github.com/marco-rosner/handson-react

A project to practices ReactJS using React Router, Hooks, Context API, Jest (Testing) and Typescript. Also apply Server Side Rendering (SSR) using Express server
https://github.com/marco-rosner/handson-react

context-api expressjs hooks-api-react jest reactjs ssr typescript

Last synced: 5 days ago
JSON representation

A project to practices ReactJS using React Router, Hooks, Context API, Jest (Testing) and Typescript. Also apply Server Side Rendering (SSR) using Express server

Awesome Lists containing this project

README

          

[![Test workflow](https://github.com/marco-rosner/handson-react/actions/workflows/test-client.yml/badge.svg)](https://github.com/marco-rosner/handson-react/actions/workflows/test-client.yml) [![Build workflow](https://github.com/marco-rosner/handson-react/actions/workflows/build-server.yml/badge.svg)](https://github.com/marco-rosner/handson-react/actions/workflows/build-server.yml)

# Hands on ReactJS

On client side, this is a project to practices ReactJS using ReactRouter, Hooks, Context API, Jest (Testing), Typescript based on react create app using typescript template

On server side, the goal is to apply ServerSide Rendering (SSR) using Vite and Express

## Print

HomeView
![Home View](./client/handon-react.png?raw=true "Home View")

## Client project scripts

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.

### `yarn test:covarage`

Checks the test coverage in the project.

### `yarn build`

Builds the app for production to the `build` folder.

## Server project scripts (Server Side Rendering)

### `yarn dev`

Runs the app in the development mode.
Open [http://localhost:4000](http://localhost:4000) to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

### `yarn start`

Runs the app in the production mode.

### `yarn build`

Builds the app for production to the `dist` folder.