Skip to content

v0.1.0

Compare
Choose a tag to compare
@luwanquan luwanquan released this 28 Aug 08:03
· 23 commits to master since this release

fix: Support more situations

No longer limited to render() or setup()

e.g.

hello.js

export default function() {
  return <h1>Hello World!</h1>;
}

app.js

import { createComponent } from '@vue/composition-api';
import hello from './hello';

const App = createComponent({
  setup() {
    return () => <div>{hello()}</div>;
  }
});