Comments (11)
发现是button组件的问题,当我打开devtool后报这个错
项目重新npm run start后一切正常,但是每当修改代码保存后自动刷新时就会报错
react-molin是和antd-mobile有兼容问题吗?还是自动刷新的问题?
from react-molin.
@Zegapaiz 你可以把代码贴出来,我看一下。
from react-molin.
@Molin123
from react-molin.
@Zegapaiz
onClick = () => {
Popup.show(<div>666</div>)
}
render(){
return(
<div>
<Button onClick={this.onClick}>显示</Button>
</div>
)
}
我试了一下,没发现你说的问题。
from react-molin.
@Molin123
复现步骤
- npm run start
- 使用 chrome浏览器 或者 微信web开发者工具 打开http://127.0.0.1:1024/app.html#/list 并打开控制台console面板
- 在src/app/list.js中第44行插入
<Button onClick={onClick}>显示</Button>
- 在第37行插入
const onClick = () => { Popup.show(<div>666</div>) }
- 在第8行引入Popup和Button组件
- command + s 保存 观察控制台console面板中的信息
from react-molin.
@Zegapaiz 按照你的步骤试了一下,也是没有问题的
from react-molin.
@Molin123 没有报错吗?是新git下来的代码吗?你本地的和线上仓库中的代码是否有区别?我在另外一个位置新拉下来代码新建一个工程,按照上述过程同样报错
from react-molin.
@Zegapaiz 是和master分支一样的
from react-molin.
@Molin123 我这边还是报错= =晚上我换台电脑试试
from react-molin.
@Molin123 我换了台电脑仍然出现问题,方便留下邮箱吗?我将发送一个录屏说明我的问题
from react-molin.
@Zegapaiz [email protected]
from react-molin.
Related Issues (14)
- 貌似有报错 HOT 8
- 没有看懂试例? HOT 4
- npm run start 报错 HOT 1
- less编译时报错
- this.props.match.path 找不到
- 设置host,提个小建议 HOT 4
- 部署到tomcat,提示找不到访问路经 HOT 1
- 感觉JSX的语法配置还是要写在webpack配置文件里面 HOT 1
- 可以加eslint校验代码 HOT 1
- 本地项目引入antd-mobile源码
- 请教您一个关于Router按需加载的问题 HOT 6
- fetch HOT 4
- webpack HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-molin.