You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@devloco/create-react-wptheme

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devloco/create-react-wptheme

Create React-enabled WP themes.

3.4.1-wp.1
latest
Source
npmnpm
Version published
Weekly downloads
25
-48.98%
Maintainers
1
Weekly downloads
 
Created
Source

Create React WP Theme

Up To Date!

Apr. 15, 2020
Facebook recently released v3.4.1 of Create-React-App.

And now create-react-wptheme is up-to-date.
If you have a theme made with an earlier version of create-react-wptheme and want to update it to the latest code, just follow these instructions.

Getting Started

Michael Soriano is writing a tutorial for creating a theme using React. He uses create-react-wptheme for the initial setup. He provides a lot more detail than this readme and the screen shots are really helpful.

Check it out:
Let's build a WordPress theme with React: Part 1 (Setup)

See the full README on Github.

Goals

  • Remove WebPackDevServer and use your WordPress dev server instead.
    • Also, do not proxy the WordPress server.
    • Thus removing CORS as a concern.
  • Maintain feature parity(ish) with create-react-app
  • Touch the original react-scripts as little as possible.
    • Add new files where possible.
    • This will make merges easier.

Acknowledgements

I'm grateful to the authors of existing related projects for their ideas and collaboration:

License

Create React WP Theme is open source software licensed as MIT.

Keywords

wordpress

FAQs

Package last updated on 16 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts