UNPKG

idyll-document

Version:

The Idyll runtime, implemented as a React component.

16 lines (13 loc) 396 B
import React from 'react'; export const generatePlaceholder = (name) => { return class extends React.PureComponent { constructor(props) { super(props); console.warn(`Warning: attempting to use component named ${name}, but it wasn't found`); } render() { const { idyll, updateProps, hasError, ...props } = this.props; return <div {...props} />; } } }