Better way to add types to props in a functional component in NextJS Typescript project

前端 未结 0 662
一整个雨季
一整个雨季 2020-12-05 15:13

I want to add types when there are multiple props. For ex:

export default function Posts({ source, frontMatter }) {
...
}

One way I found is

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