Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Wordpress Plugin Development with React.js (2021)
Rating: 4.2 out of 5(117 ratings)
7,074 students

Wordpress Plugin Development with React.js (2021)

How to code a plugin for Wordpress with React.js
Created byGuillaume Duhan
Last updated 2/2021
English

What you'll learn

  • Wordpress plugin development with React
  • Develop a Wordpress Plugin
  • Add React to Wordpress
  • Create a React component
  • Create functions inside a React component
  • Link a template to a React component
  • Add javascript libraries to a React component

Course content

1 section9 lectures50m total length
  • Introduction with Wordpress5:05

    A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress.

    In this course, we are going to initialize our Wordpress instance.

  • Create our first plugin7:50

    Why We Make Plugins?

    If there’s one cardinal rule in WordPress development, it’s this: Don’t touch WordPress core. This means that you don’t edit core WordPress files to add functionality to your site. This is because WordPress overwrites core files with each update. Any functionality you want to add or modify should be done using plugins.

    WordPress plugins can be as simple or as complicated as you need them to be, depending on what you want to do. The simplest plugin is a single PHP file. The Hello Dolly plugin is an example of such a plugin. The plugin PHP file just needs a Plugin Header, a couple of PHP functions, and some hooks to attach your functions to.

    This course is about getting basis of creating a WordPress plugin.

  • Display our plugin with shortcode4:19
  • Import React to Wordpress4:59

    React has to be imported in WordPress.

    We have two solutions: integrate React directly inside our folder or fetch it by a CDN. In this lesson, I suggest you to integrate it via CDN.

    A CDN (Content Delivery Network) is a highly-distributed platform of servers that helps minimize delays in loading web page content by reducing the physical distance between the server and the user. This helps users around the world view the same high-quality content without slow loading times.

  • Create our template4:17

    To display our plugin, we need templates. In this course, I am showing you how to create a HTML template and link it to your main file index.php.

    This HTML part is necessary to display our React plugin later. Moreover, React embraces the fact that rendering logic is inherently coupled with other UI logic: how events are handled, how the state changes over time, and how the data is prepared for display. This template will be the root of this functioning environment.

  • Create our first React Component5:56

    In this tutorial, you’ll learn to create custom components in React. Components are independent pieces of functionality that you can reuse in your application, and are the building blocks of all React applications. Often, they can be simple JavaScript functions and classes, but you use them as if they were customized HTML elements. Buttons, menus, and any other front-end page content can all be created as components. Components can also contain state information and display markdown.

    We are going to create our first React component for our plugin.

  • How to design our plugin: Bootstrap, Tailwindcss & Material design6:20

    Our Cookie plugin needs to be design. In this part of the course, I am going to present you some frameworks that you can use to design your components.

  • Final component logic & design with React10:45

    This lesson is maybe the most important lesson of the whole course.

    We link globally every functionalities of our plugin. We create functions in our React component that will be linked to our final template and interact between them.

  • Thank you very much !0:32

Requirements

  • None

Description

Wordpress Plugin Development with React

This course aims you to teach you how to code your own plugin on a Wordpress website. We are going to learn together how to start, how to activate our plugin and how to change our content dynamically.

  • At the end of this course, i'll provide you the entire plugin as files to use.

What is React?

React is an open-source JavaScript library that is used for building user interfaces specifically for single-page applications. It's used for handling the view layer for web and mobile apps. React also allows us to create reusable UI components.

Why React?

React allows developers to create large web applications that can change data, without reloading the page. The main purpose of React is to be fast, scalable, and simple. It works only on user interfaces in the application.

  • First JavaScript framework on market right now,

  • Easy to learn,

  • Important amount of packages to use,

  • Biggest community of JS frameworks,

  • Various documentation and help to find,

  • Most chosen library/framework in JavaScript,

  • The use of reusable, composable, and stateful components,

  • The nature of reactive updates...

You understand now why React can be a powerful ally. There are many other reasons to use it but the main one: it's the most common framework asked on job market.

"When React was first introduced, it fundamentally changed how JavaScript frameworks worked." Eric Elliott

So if you are looking for an efficient course to learn how to code your Wordpress plugin with React, you are at the right place.

Who this course is for:

  • beginners