react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
19 lines • 345 B
JavaScript
import { addPreset } from '../presets';
export default function transformer(file, api) {
const j = api.jscodeshift;
const root = j(file.source);
const options = {
a: [1, 2, 3],
b: {
foo: 'bar'
},
c: 'baz'
};
addPreset('test', options, {
root,
api
});
return root.toSource({
quote: 'single'
});
}