(Before I start I have to let you know I'm still a junior dev so I might not have in-depth knowledge on the following arguements, they are soley based on my experiences)
I want to create an article sharing website with React but the problem is that I can't get certain features to work right.
Take for example when a user wants to share an article
www.mysite.com/article/id using csr I will have to shoot a request to fetch that article id's data from my database on
componentWillMount and then render that data. This works fine except it sucks for SEO because by the time the request finishes to load the page will be rendered already and programs like facebook scrapper will say that page has no seo information. It would also be nice if the functionality of
getInitialProps existed on client side rendering.
Frameworks like GatsbyJS and NextJS take all the content of the site and turn it into static files thereby loosing the ability tto do dynamic stuff like adding new articles and editing existing articles.
GatsbyJS empowered by NetlifyCMS has a work around for this which creates markdown files and then references each file on the system as a node through a plugin called
gatsby-source-filesystem but the problem with this combination is that it has to rebuild the site everytime a new post is added which kinda sucks because your users have to wait for the site to rebuid to see their posts live.