forked from enviPath/enviPy
18 lines
324 B
JavaScript
18 lines
324 B
JavaScript
export { Component, h as createElement } from 'preact';
|
|
|
|
export const Children = {
|
|
only(children) {
|
|
return children && children[0] || null;
|
|
}
|
|
};
|
|
|
|
function proptype() {}
|
|
proptype.isRequired = proptype;
|
|
|
|
export const PropTypes = {
|
|
element: proptype,
|
|
func: proptype,
|
|
shape: () => proptype,
|
|
instanceOf: ()=> proptype
|
|
};
|