TypeScript & React: reusable generic actions / components

前端 未结 0 943
时光取名叫无心
时光取名叫无心 2021-02-05 14:42

I use TypeScript with React and useReducer and I want to define reducer Actions in a type-safe way.

The simplest approximation of Action is:

type Action =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题