Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mauricedb/ts-react


https://github.com/mauricedb/ts-react

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# TypeScript React Snippets

[![Greenkeeper badge](https://badges.greenkeeper.io/mauricedb/ts-react.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/mauricedb/ts-react.svg?branch=master)](https://travis-ci.org/mauricedb/ts-react)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fapi%2Fgithub.com%2Fmauricedb%2Fts-react%2Fmaster)](https://stryker-mutator.github.io)
![Cypress tests](https://github.com/mauricedb/ts-react/workflows/Cypress%20tests/badge.svg)

## [Counter](src/Counter/Counter.tsx)

Uses `useState()` and `onClick` event handler to incement state.

## [Person](src/Person/Person.tsx)

Used `useReducer()` and `onChange` event to update a person object and display the result.