Create components with ES6 Vanilla Javascript.

Why? because it has helped me further my understanding of frameworks like Reactjs, Vuejs, Preactjs, and others. And it’s a Friday night.

Yum!
es6 IIFE, I have reassigned global variables to shorten the DOM lookup and when referencing.
This is a lot of information to take in, but don’t worry, just test it all in the repl.it :)
Now we have our navbar component, and we will execute the setup_navbar() upon page load.
Reach into your mind and pull out some javascript.

Software Engineer @Articulate & Bboy. Passionate @ solving digital and human problems. https://supwill.dev / linkedin.com/in/williampeiyuan/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store