UNPKG

react-carousel-query

Version:

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

19 lines 350 B
import { addPreset } from '../presets'; export default function transformer(file, api) { var j = api.jscodeshift; var root = j(file.source); var options = { a: [1, 2, 3], b: { foo: 'bar' }, c: 'baz' }; addPreset('test', options, { root: root, api: api }); return root.toSource({ quote: 'single' }); }