Console
{ this.consoleMessages = element; }} className="preview-console__messages">
{this.props.consoleEvents.map((consoleEvent) => {
const { args, method } = consoleEvent;
if (Object.keys(args).length === 0) {
return (
undefined
);
}
return (
{Object.keys(args).map(key => {args[key]})}
);
})}