UNPKG

react-carousel-query

Version:

A infinite carousel component made with react that handles the pagination for you.

16 lines (10 loc) 286 B
'use strict' var normalize = require('mdurl/encode') module.exports = image function image(h, node) { var props = {src: normalize(node.url), alt: node.alt} if (node.title !== null && node.title !== undefined) { props.title = node.title } return h(node, 'img', props) }