Console

{ this.consoleMessages = element; }} className="preview-console__messages"> {this.props.consoleEvents.map((consoleEvent) => { const { arguments: args, method, times } = consoleEvent; const { theme } = this.props; Object.assign(consoleEvent, { data: this.formatData(args) }); if (Object.keys(args).length === 0) { return (
undefined
); } return (
{ times > 1 &&
{times}
}
); })}