-
This test is namely for signals-based libraries. We need a test that shows that when a custom elements is rendered, none of its life cycle methods (`constructor`, `connectedCallback`, `adoptedCallback…
-
[FEX技术周刊](https://mp.weixin.qq.com/s?__biz=MjM5NDgzMjMzMQ%3D%3D&mid=2651069539&idx=1&sn=a76afee709bdc2ebbf1118978e12a1a4#wechat_redirect)
[JS与面向对象](http://www.renfed.com/2017/05/21/js-oop/)
[Vue 的单元…
-
- [x] Object
- [x] Array
- [x] WeakMap
- [x] WeakSet
- [x] Map
- [x] Set
- [x] ArrayMap (Array.prototype.map, optimized)
- [x] SignalAsyncData / load (wrap a promise)
- [x] asyncFunction (wrap…
-
# mobx初探
mobx是简单、可扩展的状态管理库。
mobx的核心是TFRP,透明的函数响应式编程(transparently applying functional reactive programming)
mobx认为任何源自应用状态的东西都应该自动地获得。
## 基本实例
我们通过一个简单的计数器看mobx的实例。这边的例子不包含与react的结合。
```…
-
先要明白 mobx 和 redux 的定位是不同的。redux 管理的是 (STORE -> VIEW -> ACTION) 的整个闭环,而 mobx 只关心 STORE -> VIEW 的部分。
但作为两个目前最火的 React 应用框架库,人们习惯于把他们比较到一起。下面我们也来看下 mobx 和 redux 相比的优缺点。(据说每个列 3 点会让人更容易记住。。)
## 优点
基于运行时…
-
In #405, we added the `debug_all` method so that you can easily get a debug print out that includes *all* fields. But that may introduce unwanted dependencies. How often do people want it? Maybe we sh…
-
Hi there :wave:!
I'm really interested in the future of TSX and Vue, but couldn't find specific information about it. I'm currently using the composition API with TSX (based on this [example repo](…
-
## 1. 前言
Mobx 是 React 的另一种经过战火洗礼的状态管理方案,和 Redux 不同的地方是 Mobx 是一个响应式编程(`Reactive Programming`)库,在一定程度上可以看做没有模板的 Vue,基本原理和 Vue 一致。
Mobx 借助于装饰器的实现,使得代码更加简洁易懂。由于使用了可观察对象,所以 Mobx 可以做到直接修改状态,而不必像 Redux 一…
-
# 老树发新芽—使用 mobx 加速你的 AngularJS 应用
1月底的时候,Angular 官方博客发布了一则消息:
> **AngularJS** is planning one more significant release, version 1.7, and on July 1, 2018 it will enter a 3 year Long Term Support …
-
First off, `Svelte` is incredibly lightweight and fast. It compiles your code at build time, which means you're shipping less JavaScript to the browser. This could make your app feel super snappy, esp…