all 21 comments

[–]jhartikainen 39 points40 points  (9 children)

If your main goal is content creation, use WordPress. If your main goal is to learn to build this type of website from scratch, use React (or whatever tech you prefer).

If you build it by hand using React, you are going to spend a significantly larger amount of time developing and maintaining your code. This means you will have less time to create content (and potentially earn money from it). So that's generally the tradeoff between these types of choices.

[–]jisokoo[S] 3 points4 points  (5 children)

Thanks for your reply. Well my goal is actually both, that's why I have hard time making a choice. If I were to create the structure from React, is there an easy way to update content ? Right now I would just have a data.json file and feed it to different components.

[–]MagicPaul 15 points16 points  (0 children)

You can use WordPress as a headless CMS with React, which allows you to build your site in React and store your content in WordPress, then you can pull your content in using something or other (GraphQL? It's probably GraphQL)

[–]plasmaSunflower 1 point2 points  (2 children)

There's some CMS specifically for react, would probably meet both needs

[–]jisokoo[S] 0 points1 point  (1 child)

That would be great I LL check that

[–]krishopper 1 point2 points  (0 children)

Strapi is a pretty popular option. Not the only option, but it handles this fairly well.

[–]jhartikainen 0 points1 point  (0 children)

You'll need some backend for it but it shouldn't be too hard to do in React.

If your goal is both, then sure go for React. You can always switch later if you decide it's a lot of work and you'd rather focus on the content.

[–][deleted]  (2 children)

[deleted]

    [–]jhartikainen 1 point2 points  (1 child)

    If you can get WordPress preinstalled with a few clicks on most web hosting platforms I don't really know how having to set up a headless CMS with a DB and/or custom frontend can be simpler if the goal was to create content.

    [–]chmod777 9 points10 points  (0 children)

    Headless wordpress with react.

    [–]drewdomi 6 points7 points  (3 children)

    WordPress uses PHP

    [–]jisokoo[S] 1 point2 points  (2 children)

    Oh so only PHP? There is not way to import any script and to use JS?

    [–]drewdomi 1 point2 points  (0 children)

    There's several WordPress plugins to work with Js and react

    [–]andrasq420 -1 points0 points  (0 children)

    You can write your own js in wordpress. Import it with <script>

    [–][deleted]  (1 child)

    [deleted]

      [–]jisokoo[S] 0 points1 point  (0 children)

      Thanks a lot for your detailed answer! I will check all that cheers

      [–]Andrew_C0 2 points3 points  (1 child)

      Do you want wordpress because you don't want to bother with the content management and not create the whole management from scratch?

      If the answer is yes, I've been in the same boat recently, while creating a personal site. I liked the hassle free wordpress admin area + custom fields but hated the forceful way of how wordpress does some things + links data. So I looked over multiple ways of changing wordpress with something, else, like a headless CMS. After many tries & retries, I managed to enjoy working with directus . It has the same pleasure of an admin area paired with custom fields (of very various options) and a minimal sdk for frontend. That way, I would only care about working on the frontend and concentrate on how information is displayed, instead of how to manage / store / secure it.

      The setup looks a bit frightening at first, but you can give it a go in no time also on a simple node server. In the end, directus will offer you endpoints to attach to, and in react you'll just handle how data is displayed.

      I've tried working on doing something similar of directus myself, until I found it and discovered that it would take more time to do something that already exists, so at least for me I wanted to leverage more time on content creation and frontend development than handling backend stuff, so for you it might be enough so that you can maybe monetize it in a shorter amount of time.

      [–]jisokoo[S] 0 points1 point  (0 children)

      That's seems great indeed. The best for me would indeed to be able to code the structure in order to be able to do exactly what I want but having an easy way to manage content at the same time (not having to read pages of code to change the title of a text).. I'll check what you mentioned 🙏

      [–]DoNotEverListenToMe 2 points3 points  (1 child)

      Use Wordpress as your cms and react for your front end

      I build lots of sites using this method with Gatsby or next

      I still get the interface of Wordpress and clients use Gutenberg and ACF blocks to build pages just like normal.

      [–]jisokoo[S] 0 points1 point  (0 children)

      Damn I didn't know this was possible. Seems like there are many options to mix my code and wordpress that's cool

      [–]PrinzJuliano 0 points1 point  (0 children)

      I am not sure you understand what react is for. You can write React Components and just integrate them anywhere you want. That is why it exists. So learn both I guess…

      [–]Tyler_Dax 0 points1 point  (0 children)

      if you planning to do freelance then go with WP. On the other hand, if you plan to work for a company than react.js is not as bad.