Gutenberg Blocks for WordPress and React Developers

所在平台: Udemy

课程主页: https://www.udemy.com/course/gutenberg/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:Gutenberg Blocks for WordPress and React Developers** **课程概述:** 本课程专注于WordPress最新的Gutenberg区块编辑器,该编辑器基于ReactJS构建,取代了传统的WYSIWYG编辑器。Gutenberg的核心是“区块”,每个区块都有其特定的功能,如按钮、图片或文本。本课程将教授您如何创建自定义Gutenberg区块,从简单的区块开始,逐步深入更复杂的区块开发。 **先修知识要求:** * WordPress主题/插件开发经验 * JavaScript基础知识,最好熟悉ES6+版本 * ReactJS基础知识,包括组件状态、Hooks等。对高阶组件有了解更佳。 * Redux基础知识(Store, Actions, Reducers等)对部分区块开发非常有帮助。 **课程内容:** 1. **区块设计指南:** 在开始编码前,我们将探讨区块设计应遵循的原则。 2. **Gutenberg工作原理:** 了解Gutenberg文章如何在数据库中保存,以及如何从数据库内容构建ReactJS UI。 3. **创建WordPress插件与注册区块:** 使用`wp-scripts`工具处理JS和CSS文件,集成ESLint, Prettier, Stylelint, Husky等工具提升开发效率。 4. **主题中的区块编辑器修改:** 探索如何在WordPress主题中修改或添加区块编辑器的功能。 5. **创建基础区块:** 学习基础区块的构成和可实现的功能。 6. **创建复杂区块:** 学习如何创建包含嵌套区块、图片处理等高级功能的复杂区块。 7. **动态区块开发:** 学习创建不仅能生成静态HTML,还能与数据库交互的动态区块。 8. **Redux-like数据存储:** 探索Gutenberg编辑器中的数据存储机制,学习使用现有数据存储和创建自定义存储。 9. **元数据管理:** 学习通过区块和自定义侧边栏插件管理元数据。 10. **其他高级主题:** 讨论Context, Patterns, Templates, Formatting API, Filters, Internationalization等。

课程评论(0条)

课程详情

Recently WordPress decided to change their old WYSIWYG editor into a new ReactJS based block editor known as 'Gutenberg'. Gutenberg also known as the block editor is based on blocks. So your post will be composed of some blocks and each block will have a purpose. You can have a block that displays a button or an image or some text and so on. In this course you will learn everything you need to know in order to create custom blocks for the block editor. We will start by a simple block and then we will create some more complex blocks.In order to gain the most out of this course you need to have WordPress theme/plugin development knowledge. Javascript knowledge is required for this course. You should be familiar with basic JavaScript concepts and preferably the recent ES6+ versions. ReactJS knowledge is also required for this course. So concepts like component state, hooks and basic react concepts should not be new to you. Also advanced concepts like higher order component knowledge would be ideal however it will be discussed briefly in the course. Redux knowledge is also ideal. Not all blocks will require using redux, however in some blocks we will use redux heavily. So it would be ideal if you are familiar with redux concepts like stores, actions, reducers and so on.The course content will go as follows:First and before any coding we will discuss some design guidelines that you should follow when designing a block.We will take a look on how your Gutenberg post is saved in your database and what happens behind the scenes in order to construct your ReactJS based UI from the content saved in the database.In Section 2, we will create a WordPress plugin. Inside this plugin we will register out first Gutenberg block. We will also use a tool provided by WordPress called wp-scripts in order to process JS and CSS files in this plugin. We will also integrate tools like ESLint, Prettier, Stylelint and Husky for an improved development workflow.In section 3, we will take a quick look on some stuff that you can do in your WordPress theme that will allow you to modify/add some features in the block editor.In section 4 we will create a simple block. However in this simple block we will learn a lot about what we can do in a block.In section 5 we will use our knowledge to create a more complex block with some advanced features. These features include how to add blocks inside of other blocks, how to handle images and many more.Section 6 will be about creating dynamic blocks. So blocks can be static or in other words only generate some static HTML. But also they can be dynamic for example they can fetch something from the database.Section 7 will discover more about the redux-like data stores in the block editor. We will see how to use the existing data stores and also create our own store.Section 8 we will see different ways that we can follow in order to manage metadata in Gutenberg. We will manage metadata using a block. And we will also learn how to create a custom sidebar plugin and manage metadata in this sidebar.In the final section we are going to discuss various topics like: context, patterns, templates, formatting API, filters and internationalization.

课程标签

0人关注该课程

主题相关的课程