Client Side Routing and State Management #2187
jhorback
started this conversation in
Show and tell
Replies: 1 comment
-
Neat! I think if you're up for it, the Lit & Friends Slack channel would probably be a great place to share your project(s) and see if others might be interested in contributing / testing them out or getting feedback. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Routing
I have been using Lit/LitElement for a few years. I recently finished writing a small but full featured solution for client side routing. It is based on some concepts from Polymer as well as common routing concerns that I pulled from React and Angular routers.
Router
State Management
I have used a state management pattern utilizing custom elements for years. It's a Flux pattern using DOM events as "actions" and custom elements as a data store. I only needed an EventMap mixin to pull that off.
More recently I added a few features and created a base class that pulls the various aspects of the pattern together.
DataElement
Domx Mono Repo
These packages are part of a mono repo that contain some other small scripts that mostly support the Router and DataElement packages.
Domx
Beta Was this translation helpful? Give feedback.
All reactions