TypeScript React Snippets Counter Uses useState() and onClick event handler to incement state. Person Used useReducer() and onChange event to update a person object and display the result.