ehellman / babel-plugin-multitron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

babel-plugin-multitron

Converts

const MyComponent = styled('div', ({ isActive, hasBorder }) => ({
  color: 'red',
  borderColor: 'yellow'
}));

To:

const MyComponent = styled('div', ({ isActive, hasBorder }) => ({
  color: 'red',
  borderColor: 'yellow'
}), ['isActive', 'hasBorder']);

This means that you can write Styletron components for React and then use them with Vue as well. Win!

About


Languages

Language:JavaScript 100.0%