MCPcopy Create free account
hub / github.com/STRML/react-router-component / divProps

Function divProps

tests/browser/browser.js:27–35  ·  view source on GitHub ↗
(children, prop)

Source from the content-addressed store, hash-verified

25var a = React.createFactory('a');
26
27function divProps(children, prop) {
28 return CreateReactClass({
29 render: function() {
30 var propVal = this.props[prop];
31 if (typeof propVal === 'object') propVal = JSON.stringify(propVal);
32 return div(children, propVal);
33 }
34 });
35}
36
37function delay(ms, func) {
38 if (func === undefined) {

Callers 1

browser.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected