nextcloud-libraries / nextcloud-libraries/nextcloud-vue
[Discussion] Add JSX support to simplify render function components and Vue 2 + Vue 3 support
Open
@ShGKme is already working on this.
Since Aug 29, 2024.
discussion
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
The proposal is not about migration <template> -> JSX but from render: () => h(tag) to render: () => <tag /> in the components already implemented via render functions.
Adding JSX support allows:
- Simplify complex render functions
- Decrease the difference between Vue 2 and Vue 3 version (render function API changed a lot)
- Improve performance in Vue 3 with complite-time optimizations
Required steps:
- Add Vite plugin for JSX
- Configure webpack for vue-styleguidist
- Rewrite components
NcActions,NcButton
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.