Inferno 3.7.1 已发布,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; 该版本新增了对复选框不确定状态的支持,以及一些次要的性能优化。 下载地址: Source code (zip) Source code (tar.gz) Inferno 3.7.1 发布,JavaScript 用户界面库下载地址