You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
471 B

// 1.导入 countStore
import { counterStore } from './store/counter'
// 2.导入中间件,连接mobx、react,完成响应式变化
import { observer } from 'mobx-react-lite'
function App () {
return (
<div className="App">
{/* 使用就算属性 */}
{counterStore.filterList.join('-')}
<br/>
<button onClick={counterStore.addList}>修改数组</button>
</div>
)
}
export default observer(App)