Linuxeden 开源社区 --
Inferno 3.8.2 已发布,该版本修复了由于积累的 bug 导致的错误构建问题。详情
Inferno 是一个极其快速,类似 React 的 JavaScript 库,用于构建现代用户界面。
示例:
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 <h2>
Current time: <span>{this.state.time}</span>
</h2>
}
}
export default MyInfernoTest;
支持浏览器:
下载地址:
转自 http://ift.tt/2xBvyCb
The post Inferno 3.8.2 发布,JavaScript 用户界面库 appeared first on Linuxeden开源社区.
http://ift.tt/2wW490Y
没有评论:
发表评论