How to create a layout switcher with Tailwind CSS and JavaScript

How to create a layout switcher with Tailwind CSS and JavaScript

Today we are recreating a layout switcher we did with Tailwind CSS and Allpine JS but with Vainilla JavaScript.

Read the article See it live and get code