- MobX observer that allows passing function selector
- let App = observer ( selector , ({ todos , actions }) => {
- let observer = ( selector , Component ) => {
- // passing function to observer (with implicit inject) is not supported natively, so make up your own one
- // WARNING: doesn’t work if “observer” used as decorator

@mostruszka: “#mobx #reactjs micro-tip: pass function selector to “observer” if you don’t like “stringly-typed” state slices:” open tweet »