4 ms·
I was looking something like this when I wanted to add a blog for my React SPA apps. I didn't want WordPress, but I wanted a simple backend just for editing the
by laurynas-s 8y ago
I was looking something like this when I wanted to add a blog for my React SPA apps. I didn't want WordPress, but I wanted a simple backend just for editing the blog posts.
However, I realised that it is going to be bad for SEO as I cannot do serverside rendering this way.
I cosidered adding a WordPress blog, but eventually just ended up with a simple markdown rendering from the files - 1 file - 1 post.
If you manage to find a easy way to support serverside rendering, the product is going to be good.
- tonyspiro 8y agoYou CAN do server-side rendering. Check out our apps page to see how you can integrate dynamic content into any website or app, server or client-side: https://cosmicjs.com/apps https://cosmicjs.com/apps
- isthispermanent 8y agoMy server-side React blog (https://philandrews.io https://philandrews.io) runs on Cosmic. And it's easy. Given that your blog posts reside at the end of a url, one GET request brings gets all the content you need to populate your index or post page. Pair your React with NextJS, fetch your post(s) in getInitialProps and you're good to go. Here's an article I wrote about opening up a blog with Cosmic back in 2017. It still holds... https://hackernoon.com/language-agnostic-content-management-with-cosmic-js-42b5dbe1880f https://hackernoon.com/language-agnostic-content-management-...
- Geee 8y agoI think you should use static site generator such as gatsbyJS. It's even better than server-side rendering.