reactjs - Use Typescript in ReactJs
问题描述
I want to write this code:
.map(({ key }) => key);
using typescript, i did this: .map(({ key:any }) => key);
, but i got an error: 'any' is declared but its value is never read.
. How to apply typescript in my situation?
解决方案
推荐阅读
- crystal-lang - Crystal 中的 Web 抓取库
- vba - 防止用户窗体切换工作表
- c# -
在服务器上上传代码时不起作用 - java - 如何在运行时更改属性文件和刷新配置类?
- java - Spring蛇案例和验证错误响应
- python - jupyder notebook: OSError: [Errno 2] "dot" not found in path
- sas - SAS PROC SQL - 如何将字符串转换为数字
- php - Ajax 无法使用 GET 向 php 发送数据
- amazon-web-services - 在 Glue 作业中创建 Glue 数据目录表
- entity-framework-core - 即使属性类型不可为空,是否可以将数据库列配置为允许 NULL?