mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-05 16:42:27 +03:00
feat: new @bbob/html api (#4)
This commit is contained in:
committed by
GitHub
parent
bf993813fc
commit
575c1bb932
@@ -1,7 +1,6 @@
|
||||
const React = require('react');
|
||||
const PropTypes = require('prop-types');
|
||||
|
||||
const { render } = require('./render');
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { render } from './render';
|
||||
|
||||
const content = (children, plugins) => React.Children.map(children, child =>
|
||||
(typeof child === 'string' ? render(child, plugins) : child));
|
||||
|
||||
Reference in New Issue
Block a user