Skip to content

[Advanced] ISSUE_TITLE_HERE #782

Closed as not planned
Closed as not planned
@nguyenhoanghai1605

Description

@nguyenhoanghai1605
  1. When should you use TypeScript with React instead of just JavaScript?
  2. How to declare styles for props in a React component?
  3. What is the difference between interface and type in TypeScript? Which one to use for props?
  4. How to define a functional component with TypeScript?
  5. How to declare types for useState, useReducer, useRef, useContext in React + TypeScript?
  6. How to style events in handlers like onClick, onChange, onSubmit...?
  7. How to use TypeScript utility types like Partial, Pick, Record, Omit in React?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ADVANCEDAdvanced Cheatsheet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions