MCPcopy
hub / github.com/gaearon/react-document-title / reducePropsToState

Function reducePropsToState

index.js:7–12  ·  view source on GitHub ↗
(propsList)

Source from the content-addressed store, hash-verified

5 withSideEffect = require('react-side-effect');
6
7function reducePropsToState(propsList) {
8 var innermostProps = propsList[propsList.length - 1];
9 if (innermostProps) {
10 return innermostProps.title;
11 }
12}
13
14function handleStateChangeOnClient(title) {
15 var nextTitle = title || '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…