Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return !todo.completed;
});
}
}
// Which props do we want to inject, given the global state?
// Note: use https://github.com/faassen/reselect for better performance.
function select(state) {
return {
visibleTodos: selectTodos(state.todos, state.visibilityFilter),
visibilityFilter: state.visibilityFilter
};
}
//Wrap component,inject dispatch and state into its default connect(select)(App)
const App = registerComponent('App', connect(select)(_App));
export default App;
import { registerComponent, registerFilter } from 'nornj';
import { toJS } from 'mobx';
import { Provider } from 'mobx-react';
import './mobxBind';
import './mobxObserver';
registerComponent('mobx-Provider', Provider);
registerFilter('toJS', v => toJS(v));