//高阶函数 import React from 'react' // 高阶组件就是一个函数(纯函数) // 参数 组件(第一个参数必须是组件) export default function hoc(WrappedComponent){ return class extends React.Component{ constructor(props){ super(props) this.state = { msg:'helle-hoc', hocArr:[ {id:1,label:'hoc-1...
👍 Thanks for this!🏷 I have applied any labels matching special text in your issue....
Intended outcome trying to import 2.1.0 and 2.2.0 raising the error ./node_modules/mobx-react/dist/mobxreact.esm.js Attempted import error: 'isObserverBatched' is not exported from 'mobx-react-lite'. Actual outcome Upgrade from 2.0.7 to ...