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!

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"

How to choose a way to style your javascript app

Styled-components, BEM + vanilla CSS, CSS modules, theme-ui....

Differentiating between a styled-component and a React component

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

Do you feel it's messy to mix logic and styles?

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

Easily debug styled-components' random classes

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

Real life styled-components projects

Diving into Spectrum's styled-components source code

When to use the useReducer() hook?

Why using useReducer when you can use the useState() hook?