I have this blog post layout which I need to create, but it requires featured posts and reversing of the flex container, how would I achieve this if the list of posts is being pulled from an API using Array.map()

I know how to map the post list if they have a uniform layout or a first post being different but how would I achieve every third post having a different layout compared to the normal post layout?

I am using React

r/webdev - How to achieve this layout when pulling from a cms?



Source link

Write A Comment