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

state management? css? #74

Open
laoshaw opened this issue Aug 3, 2023 · 4 comments
Open

state management? css? #74

laoshaw opened this issue Aug 3, 2023 · 4 comments

Comments

@laoshaw
Copy link

laoshaw commented Aug 3, 2023

how to manage state with vanjs, is this more of a SPA that can have client side routing, state etc?

also, an example with some well known css will be nice, e.g bootstrap 5.

@artydev
Copy link

artydev commented Aug 3, 2023

Hello,
VanJS is completely agnostic regarding css, routing.
You can use whatever library you feel comfortable with

For the state magement look at all the examples

Among them
Examples

Regards

@Tao-VanJS
Copy link
Member

Hi @laoshaw,

Here is an SPA example with client-side routing support, based on VanJS's powerful builtin state management and state derivation:

https://vanjs.org/demo#code-browser

@b-rad-c
Copy link
Contributor

b-rad-c commented Nov 29, 2023

@laoshaw - I just contributed an add-on for VanJS that adds routing, navigation and a navLink component, you can check it out here. It integrates with window.history.state for navigation based state, however that protocol is limited. I think using van.state or van.reactive (from the official X add-on) is sufficient for more complex application state.

@laoshaw
Copy link
Author

laoshaw commented Nov 29, 2023

Thanks!

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

4 participants