How to leverage Scala with scala.js to write frontend as functional programmers would do.

It happens to all of developers, to crawl out of basement of [B]ackend development into a shiny and fancy world of [F]ronted. Does it mean that we have to switch to frontend technological stack and leave our comfy functional scala tools?Let's find out how to leverage Scala with scala.js to write frontend as functional programmers would do.
Let's go through some libraries from ZIO ecosystem that will allow us to implement API layer with ZIO HTTP
I'll share a handful of techniques that can help you avoid runtime errors and shift them to the realm of compile time
We will look into three less-understood, yet (arguably) extremely useful constructs introduced in Cats Effect 3: Dispatcher, Supervisor, IOLocal