Hello ! My name is Daggala and I'm a front end developer.

I post here whenever I think of something that could be helpful for other developers out there :)

You are very welcome to say hi to me on Twitter!

Top level expression is expected to have unit type

Error message

Functor Bindings for Polymorphic Functions

Using Rescript's module functions

Convert polyvariants to string

And polyvariants back to string

Belt.Array vs Js.Array in Rescript

You might have noticed that there are several ways in Rescript for iterating through elements of an array. It’s not at all obvious which one…

How to handle multiple modals in React

without conditional rendering

Layout Margins in Styled-Components

How to avoiding creating too many margin wrappers?

Passing Props through Link in react-router

url parameters, state and no state, v5 and v6

Truly Protected React Routes

Secure authentication in React

Conditionals in styled-components

Part 4, on "How to Make Styled-Components More Readable"