sangka / mobx-docs-cn Goto Github PK
View Code? Open in Web Editor NEWMobX 中文文档
Home Page: https://cn.mobx.js.org
License: MIT License
MobX 中文文档
Home Page: https://cn.mobx.js.org
License: MIT License
is-observable
页面 isBoxedObservable
一段原文未删除
import {observer} from 'mobx-react';
@observer
class TimerView extends React.Component {
render() {
return (<button onClick={this.onReset.bind(this)}>
Seconds passed: {this.props.appState.timer}
</button>);
}
// 应该修改为下面,或在 constructor 里绑定 `this`
// onReset () {
// this.props.appState.resetTimer();
// }
onReset = () => {
this.props.appState.resetTimer();
}
};
ReactDOM.render(<TimerView appState={appState} />, document.body);
1.2章节 概念与原则中的“3. Actions(动作)”段落中的第二段,“在 MobX 中可以显示的定义动作”,读起来有点奇怪,是不是应该是“在 MobX 中可以显式的定义动作”
mobx6的文档还会更新么
英文已经mobx6了,苦于英文不好, 大佬有打算做mobx6的翻译吗?
由于之前对 Derivation 一词和 MobX 本身理解的不够透彻,导致翻译不够准确。
现在统一将 Derivation 译成 <衍生xx>(派生也可以), 至于xx按具体语境另行决定。
@dive2Pro 请知晓。
还是维持原翻译
类似
## Actions(动作)
任何应用都有动作。动作是任何用来修改状态的东西。
使用MobX你可以在代码中显示的标记出动作所在的位置。
换成这样会不会更好理解一些?
## Actions(动作)
任何应用都有Actions。Actions是任何用来修改状态的东西。
使用MobX你可以在代码中显示的标记出Actions所在的位置。
看起来很生硬啊
需不需要像redux一样用到中间件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.