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
来自:开源中国社区

