weui / react-weui

weui for react

Home Page:https://weui.github.io/react-weui/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Dialog` 引入报了一个`warn`

d1y opened this issue · comments

commented

老哥, 这是啥意思,

Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:;".
    in a (created by Dialog)
    in div (created by Dialog)
    in div (created by Dialog)
    in div (created by Dialog)
    in Dialog (at httpServer.jsx:47)
    in HttpServer (at App.js:11)
    in PureComponent (at src

React在未来的某个版本将禁止javascript:这种类型的
这是weui button用a标签的一个问题, 暂时不影响使用

没错, #320
weui项目还在维护,这个项目一直不见动静 🤦