I wrote some articles about topics I worked with. React, Webpack, JavaScript, etc.
I think, I was lucky in many ways.
I started blogging 2017 at dev.to when everyone with a name was blogging at medium, so there wasn't much competition.
I wrote beginner articles about front-end topics, that hit a nerve. So getting in the top 7 post of the week a few times helped with motivation.
I posted almost every week in 2017.
Took over two years until companies wanted to pay me to write for them.