MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / isNew

Function isNew

mini-react/src/mini-react.js:114–114  ·  view source on GitHub ↗
(prev, next)

Source from the content-addressed store, hash-verified

112 const isEvent = key => key.startsWith("on")
113 const isProperty = key => key !== "children" && !isEvent(key)
114 const isNew = (prev, next) => key => prev[key] !== next[key]
115 const isGone = (prev, next) => key => !(key in next)
116
117 function updateDom(dom, prevProps, nextProps) {

Callers 1

updateDomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected