Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(examples): add Vue 3 example #576

Merged
merged 3 commits into from
May 6, 2021
Merged

Conversation

francoischalifour
Copy link
Member

Description

This adds an example using Vue 3. It'll be a good boilerplate for Vue users, and we'll be able to better track regressions for Vue 3 use cases.

Considerations

Vue 3 accepts lower-case event names so we need to transform props like onMouseMove to onMousemove. I created a createElement adaptor user-land to support these props.

Once these frameworks mature more in the future, we could provide these adaptors for major frameworks.

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 6, 2021

examples/vue/env.ts Outdated Show resolved Hide resolved
@francoischalifour francoischalifour merged commit 1bb20ac into next May 6, 2021
@francoischalifour francoischalifour deleted the docs/example-vue-3 branch May 6, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants