Skip to content

2.0.0

Compare
Choose a tag to compare
@nickmessing nickmessing released this 26 May 03:11
· 8 commits to master since this release

Added ability to transpile all arrow functions as described in #2. Now you can define functional components in same file but remember that this syntax:

const A = () => <h1>Hello World</h1>
export const B = ({ props, listeners }) => <div onClick={listeners.click}>{props.msg}{A()}</div>

should be replaced with:

const A = () => <h1>Hello World</h1>
export const B = ({ props, listeners }) => <div onClick={listeners.click}>{props.msg}<A /></div>