I am learning WordPress REST API and ReactJs.I think ReactJS would be a great asset for developing faster themes and plugins.But I have a question.May be I am new to React that's why i am confused with those and i am asking to get a clarified idea about All those things

  1. Do i need Node for developing themes with react?I know that node/npms work for server side and while there is a rest API in wordpress,so why i should use node.I can create get requests on those API endpoints and get desired data.

  2. Will It be convenient for users?For example: If it can be installed same as to the wordpress theme installation?Upload -> Install -> Activate?..No need to run npm or something like that?

  3. Can i upload it to wordpress repository?or other premium themes' resources : themeforest/wrapbootstrap?
  • 2
    Hi, welcome to WPSE! Please ask one specific question per post. Asking multiple broad questions is not how WPSE works. Also, please check these topics on how to ask a good question here.
    – Fayaz
    Commented Jul 12, 2018 at 1:39

1 Answer 1


First of all like Fayaz had said questions with multiple questions are not the best way to ask something on this platform.

Ok, let me try to answer your questions.

(Disclaimer: I'm not an react expert. So please don`t hang me if i tell something stupid.)

Question 1:

No you need not Node.js but npm cloud be very helpful in the JavaScript development process. The easiest way to install npm is to install node.js.

Question 2:

If you create a normal theme (style.css + index.php) and then bundled your new frontend code with that theme, i think this should work.

Question 3:

For the WordPress respositroy => no perhaps you can upload as “experimental” theme For themeforest/wrapbootstrap => maybe I don`t know => it the best you ask the support of this plattforms

You are not the first one with the idea to separate the frontend code from Wordpress and use the REST Api as content supplier. In 2017 the developer Kelly Dwan built the react-base single page theme called "Foxhound". Maybe it is helpfully foryou.

I think the most important problem is that most of the frontend plugins or widgets will not work with your theme. Because the wordpress theme function will not be trigger.

Usefull links:

Foxhound Is the First REST API Powered Theme on WordPress.org - wptavern.com

Foxhound - github.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.