示例:[code]class MyInfernoTest extends Component {
constructor(props, context) {
super(props, context); this.state = {
time: null
};
}
componentDidMount() {
setInterval(() => { this.setState({
time: (new Date()).toLocaleString()
});
}, 200);
}
render() { return
Current time: {this.state.time}
}
}
export default MyInfernoTest;[/code]该版本新增了对复选框不确定状态的支持,以及一些次要的性能优化。
软件详情:http://git.oschina.net/mirrors/inferno
下载地址:https://github.com/infernojs/inferno/archive/v3.7.1.zip
来自:开源中国社区

