摘要: react 项目中给指定元素加事件,使用到 react 的 ref 属性,Eslink 报错 [eslint] Using string literals in ref attributes is deprecated. (react/no-string-refs) 常用方法:(会报错) 正确方法: 阅读全文
posted @ 2017-08-19 12:58 刚二代 阅读(8267) 评论(2) 推荐(1) 编辑