红联Linux门户
Linux帮助

Inferno 3.8.2发布,JavaScript用户界面库

发布时间:2017-09-01 09:08:10来源:红联作者:baihuo
Inferno 3.8.2 已发布,该版本修复了由于积累的 bug 导致的错误构建问题。详情

Inferno 是一个极其快速,类似 React 的 JavaScript 库,用于构建现代用户界面。

示例:[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]软件详情:https://github.com/infernojs/inferno/releases

下载地址:https://github.com/infernojs/inferno/archive/v3.8.2.zip

来自:开源中国社区
文章评论

共有 0 条评论