Do you have a requirement of embedding your dev.to posts in your web-site or any other site?
I had a similar requirement where I was thinking of embedding my top dev.to posts in my personal github-pages web site. I could not find any that would suit my requirement. So I went ahead and have built my own solution.
A react component that accepts a dev username and all that is needed to do is call the react component in your page like so:
<DevArticles username="comscience" />
And done! 🎉
You have a beautifully laid out row of your dev articles as shown in this codepen below:
Do play around with it and suggest improvements. Here are some I was thinking:
- ability to limit the number of articles
- ability to limit the number of rows
- ability to sort by max comments and hearts etc.
If you liked that article, you might also like:
Hope that helped!