Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function render(extraParams) {
// Alow tests to extend fixture before rendering
_.merge(params, extraParams);
component = ComponentTree.render({
component: ComponentPlayground,
snapshot: params,
container: document.createElement('div')
});
};
function render(extraProps) {
// Alow tests to extend fixture before rendering
_.merge(params, extraProps);
component = ComponentTree.render({
component: ComponentPlayground,
snapshot: params,
container: document.createElement('div')
});
};
function render(extraParams) {
// Alow tests to extend fixture before rendering
_.merge(params, extraParams);
component = ComponentTree.render({
component: ComponentPlayground,
snapshot: params,
container: document.createElement('div')
});
if (params.component) {
childParams = component.children.preview.call(component);
}
}
function render(extraProps) {
// Alow tests to extend fixture before rendering
_.merge(params, extraProps);
component = ComponentTree.render({
component: ComponentPlayground,
snapshot: params,
container: document.createElement('div')
});
$component = $(component.getDOMNode());
}
render () {
return (
<div>
{render({ component: serialized })}
</div>
)
}
}