Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render(el, context) {
if (
options.context &&
(el.type.contextTypes || options.childContextTypes)
) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
}
const ContextWrapper = createRenderWrapper(
el,
context,
childContextTypes
)
return ReactDOMServer.renderToStaticMarkup(
React.createElement(ContextWrapper)
)
}
return ReactDOMServer.renderToStaticMarkup(el)
},
}
render(el, context) {
if (
options.context &&
(el.type.contextTypes || options.childContextTypes)
) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(
el,
context,
childContextTypes,
);
return ReactDOMServer.renderToStaticMarkup(
React.createElement(ContextWrapper),
);
}
return ReactDOMServer.renderToStaticMarkup(el);
},
};
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return React.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return React.renderToStaticMarkup(el);
},
};
render(el, context) {
if (
options.context &&
(el.type.contextTypes || options.childContextTypes)
) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
}
const ContextWrapper = createRenderWrapper(
el,
context,
childContextTypes,
)
return ReactDOMServer.renderToStaticMarkup(
React.createElement(ContextWrapper),
)
}
return ReactDOMServer.renderToStaticMarkup(el)
},
}
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return ReactDOMServer.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return ReactDOMServer.renderToStaticMarkup(el);
},
};
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return ReactDOMServer.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return ReactDOMServer.renderToStaticMarkup(el);
},
};
render(el, context) {
if (
options.context &&
(el.type.contextTypes || options.childContextTypes)
) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes
};
const ContextWrapper = createRenderWrapper(
el,
context,
childContextTypes
);
return ReactDOMServer.renderToStaticMarkup(
React.createElement(ContextWrapper)
);
}
return ReactDOMServer.renderToStaticMarkup(el);
}
};
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return React.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return React.renderToStaticMarkup(el);
},
};
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return ReactDOMServer.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return ReactDOMServer.renderToStaticMarkup(el);
},
};
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return ReactDOMServer.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return ReactDOMServer.renderToStaticMarkup(el);
},
};