Closed klarkc closed 2 years ago
Related #1
Probably a better approach using createApp:
```purs {- main.purs -} module Main where import Prelude import PureVue (ref, createApp) main :: Effect Unit main = void $ createApp { el: "#app". , template: "
```html
```We decided to go with https://github.com/klarkc/pure-vue/issues/1
As a proof of concept, let's try to foreign import vue
ref
function and use it inside purescript code that exports asetup
hook.Something like this:
main.purs
```purs {- main.purs -} module Main where import Prelude import PureVue (Ref, ref) setup = { message: ref "Hello world" } ```
index.js
```js // index.js import { setup } from 'main.purs'; // if not possible: import { setup } from 'main.js'; createApp({ component: { template: "
Blocked by purescript/purescript#3791