import * as React from 'react' ; import { render } from 'react-dom' ; import SmartBlock from '../components/smartblock' ; import Extensions from '../extensions/' ; export default ( item , option ) => { const dom = typeof item === 'string' ? document . querySelector ( item ) : item ; if ( ! option . extensions ) { option . extensions = Extensions ; } render ( < > < SmartBlock { ... option } / > < />, dom); } ;