Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

RunKit + npm: linkstate

node v7.10.1
endpointsharetweet
> 🤔 Why? > > linkState() is memoized: it only creates a handler once for each (key, eventPath) combination. > > This is important for performance, because it prevents handler thrashing and avoids allocations during render.
oh is it?
var linkstate = require("linkstate"), component = { state: { foo: 'bar' }, setState: () => {} }; linkstate(component, 'foo') === linkstate(component, 'foo')
Created from: https://npm.runkit.com/linkstate
Loading…

no comments

    sign in to comment