
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Package with deku component wrapper for combining deku with mobx. Exports the observer function decorator. For documentation, see the mobx project.
npm install mobx-deku
Function that converts a Deku component definition or stand-alone render function into a reactive component. See the mobx documentation for more details.
import {observer} from "mobx-deku";
const TodoView = observer({
render({props}) {
return <div>{props.todo.title}</div>
}
}));
import {render, tree} from 'deku';
import element from 'magic-virtual-element';
import {observable} from 'mobx';
import {observer} from 'mobx-deku';
class AppState {
@observable counter = 0;
increaseCounter () {
this.counter += 1;
}
}
const appState = new AppState();
const App = observer({
render ({props}) {
return (
<div>
<div class='app'>{props.appState.counter}</div>
<button onClick={onClick}>+</button>
</div>
);
function onClick () {
props.appState.increaseCounter();
}
}
});
render(tree(<App appState={appState} />), document.createElement('div'));
Special thanks to mobx-react and @mattmccray's gist
FAQs
mobx bindings for deku
We found that mobx-deku demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.