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

Consider supporting libraries other than React #25

Closed
inokawa opened this issue Apr 1, 2023 · 4 comments
Closed

Consider supporting libraries other than React #25

inokawa opened this issue Apr 1, 2023 · 4 comments

Comments

@inokawa
Copy link
Owner

inokawa commented Apr 1, 2023

Vue, Solid, Svelte, Preact and Web Components.

@legowhales
Copy link

Hey, I'd love to see a Svelte implementation. Is this in the pipeline? How could I help?

@inokawa
Copy link
Owner Author

inokawa commented Jul 9, 2023

Hello.
It's not in progress yet due to priority, however we could maintain if someone contributed rough implementation.


For everyone interested in it:

This library is basically constructed with src/core (core logics, virtualization state, scroll handler and resize handler) and src/react (React components, including markup, styling and React specific implementation).

So we should create src/svelte and Svelte component in it if we need Svelte binding. And we have to replace React's APIs connecting to core (useState, useRef, useLayoutEffect...) with Svelte's similar in it. Of course this repo has no setup for typechecking, testing, building and publishing multiple frameworks but we can make it later...

And I think it's ok if VList for Svelte had different API or features from VList for React, because every frameworks expose different APIs and they may not be compatible.

@legowhales
Copy link

Ok awesome. I'll try a rough implementation as soon as I dig into the core logics.

And I think it's ok if VList for Svelte had different API or features from VList for React, because every frameworks expose different APIs and they may not be compatible.

You are right. A lot of the time we tend to port an existing code to another framework in a similar way. But Svelte works differently than React. I was thinking maybe having a "composable component builder with actions" approach like how melt-ui works. If anyone in the svelte ecosystem would like to discuss more on this, I'll be glad.

@inokawa
Copy link
Owner Author

inokawa commented Dec 20, 2023

Closing because Vue adapter was released in #282.
If anyone is interested in supporting other frameworks, please raise an independent issue.

@inokawa inokawa closed this as completed Dec 20, 2023
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

No branches or pull requests

2 participants