UNPKG

react-carousel-query

Version:

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

17 lines (11 loc) 310 B
'use strict' var normalize = require('mdurl/encode') var all = require('../all') module.exports = link function link(h, node) { var props = {href: normalize(node.url)} if (node.title !== null && node.title !== undefined) { props.title = node.title } return h(node, 'a', props, all(h, node)) }