DEV Community

Discussion on: How to build a basic Web Component with Lit Element

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

I paired lit-html with xstate and page router, love this stack!

Collapse
 
collinkleest profile image
Collin Kleest

Nice, whats xstate and page router. I've never used either as I am new to web development!

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Xstate is a way to make state machines, see my post "Ride the state rail route" for details.

Page is a simple plain old JavaScript router for making spa (single page applications) applications. In other words, you don't navigate to different pages, the content changes via JavaScript which is supposed to look like navigation. Page isn't famous, xstate is probably not as well know either, shame because it's extremely useful.

Collapse
 
oggo profile image
oggo

Do you have some example?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I'm sorry this post was last year give it a try 🙂