UNPKG

curls

Version:

💪 Responsive, expressive UI primitives for React written with Style Hooks and Emotion

10 lines (9 loc) • 264 B
import {jsx as ___EmotionJSX} from '@emotion/core' import React from 'react' export default ({src, defaultSrc, ref, alt}) => ___EmotionJSX('img', { src: src || defaultSrc, alt: alt, onError: e => (e.target.src = defaultSrc || ''), ref: ref, })