SlideShare a Scribd company logo
Jonathan Bossenger
Let’s Code
Learn.WordPress.org
Developing Blocks without React! - Part 2
2
👋🏽
Welcome!
As you join, please make sure you have your local
development environment ready:
• A local WordPress installation
• A code editor like VSCode or Sublime
• The part 1 block code -
https://github.com/jonathanbossenger/wp-
learn-javascript/releases/download/0.0.2/wp-
learn-javascript.0.0.2.zip
Then, let everyone know in the chat where you’re
joining us from…
Hello!
○ My name is Jonathan Bossenger
○ From Cape Town, South Africa
○ Ex-developer turned code instructor
○ Sponsored contributor at Automattic
○ @jon_bossenger in Twitter
Learn.WordPress.org
Let's code!
Developing Blocks
without React!
Jonathan Bossenger
Announcements
○ Welcome, and thank you to Alvaro for co-hosting today!
○ We’ll be presenting in focus mode, but please consider enabling your video.
○ You are welcome to ask questions.
○ You are welcome to post questions in the chat, or unmute to ask questions.
Announcements
○ Please consider taking the Learn WordPress Learner Survey
• https://learn.wordpress.org/individual-learner-survey/
○ Make sure your local install is ready
• https://github.com/jonathanbossenger/wp-learn-
javascript/releases/download/0.0.2/wp-learn-javascript.0.0.2.zip
○ If I am going too fast, please let me know!
○ We will be posting this session to https://wordpress.tv/ afterwards
○ For more WordPress focused content please visit https://learn.wordpress.org/
Learning Outcomes
1. Review of last week’s block code
2. Cover some general developer tools/principles for block development
3. Add an attribute to the block
4. Make it possible to edit and save the block attributes
5. Implement the RichText component for a better user experience
Objectives 1
1. Review developer tools and clearing the browser cache
2. Change the element for the edit function.
3. Add the string attribute to the block
4. Learn about the difference between the block props and blockProps
5. Make use of the attribute’s content in the edit function
a. Access the object items manually
b. Access the object items by using the destructuring assignment syntax
7
Objectives 2
1. Update the save function to access the same attribute
2. Add the onChange functionality to the element in the edit function
3. Implement the RichText component to provide a better user experience
8
9
Let’s code.
Resources
○ https://learn.wordpress.org/individual-learner-survey/
○ https://learn.wordpress.org/tutorial/using-the-create-block-tool/
○ https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/
○ https://developer.wordpress.org/block-editor/how-to-guides/block-
tutorial/introducing-attributes-and-editable-fields/
○ https://developer.wordpress.org/block-editor/reference-guides/block-api/block-
attributes/
○ https://developer.wordpress.org/block-editor/reference-guides/richtext/
Resources
○ https://developer.mozilla.org/en-
US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
○ https://developer.mozilla.org/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
○ https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName
○ https://github.com/jonathanbossenger/wp-learn-javascript

More Related Content

PPTX
Developing Blocks without React - Part 2.pptx
PPTX
Developing Blocks without React - Attributes.pptx
PPTX
Developing Blocks without React - Controls.pptx
PPTX
Developing Blocks without React - Part 1
PPTX
Internationalisation in Block Themes.pptx
PPTX
Global Styles Variations in Block Themes.pptx
PPTX
Developing Blocks without React - Block Supports.pptx
PDF
Gutenberg (WidgiLabs Training Sessions)
Developing Blocks without React - Part 2.pptx
Developing Blocks without React - Attributes.pptx
Developing Blocks without React - Controls.pptx
Developing Blocks without React - Part 1
Internationalisation in Block Themes.pptx
Global Styles Variations in Block Themes.pptx
Developing Blocks without React - Block Supports.pptx
Gutenberg (WidgiLabs Training Sessions)

Similar to Developing Blocks without React - Part 2 (20)

PPTX
Let's code: developing WordPress User Roles and Capabilities
PPTX
WordPress Coding Standards
PPTX
Let's code! Diving into theme.json
PPTX
Let's code: extending the WP REST API - modifying responses
PPTX
Shortcodes vs Widgets: Which one and how?
PPTX
Using the WP REST API
PPTX
Introduction to Gutenberg- Imran Sayed
PPTX
Let's code: custom content & custom capabilities
PPTX
Creating a WordPress multisite network
PPTX
Wordpress Shortcode
PPTX
Interacting with the WP REST API
PPTX
Bitbucket Devops PPT.pptx
PPTX
Creating Customizable Widgets for Unpredictable Needs
PPTX
Let's code! Converting a Shortcode into a Block
PPTX
Testing plugins for PHP 8
PPTX
Let's code! Creating your Primary Templates in the Editor.pptx
PPTX
WP REST API Authentication, custom fields and updating resources
PPTX
How to Contribute to the WooCommerce Ecosystem as a Developer
PPTX
Creating Custom Templates and Template Parts
PDF
Live Coverage at The New York Times
Let's code: developing WordPress User Roles and Capabilities
WordPress Coding Standards
Let's code! Diving into theme.json
Let's code: extending the WP REST API - modifying responses
Shortcodes vs Widgets: Which one and how?
Using the WP REST API
Introduction to Gutenberg- Imran Sayed
Let's code: custom content & custom capabilities
Creating a WordPress multisite network
Wordpress Shortcode
Interacting with the WP REST API
Bitbucket Devops PPT.pptx
Creating Customizable Widgets for Unpredictable Needs
Let's code! Converting a Shortcode into a Block
Testing plugins for PHP 8
Let's code! Creating your Primary Templates in the Editor.pptx
WP REST API Authentication, custom fields and updating resources
How to Contribute to the WooCommerce Ecosystem as a Developer
Creating Custom Templates and Template Parts
Live Coverage at The New York Times
Ad

More from Jonathan Bossenger (20)

PPTX
New WordPress Developer APIs The Interactivity API
PPTX
The WordPress HTML API
PPTX
The WordPress Create Block tool
PPTX
PHP compatibility testing with PHPCompatibilityWP
PPTX
Common WordPress APIs_ Settings API
PPTX
Common WordPress APIs - Options API
PPTX
Common WordPress APIs_ HTTP API.pptx
PPTX
Common WordPress APIs: Metadata
PPTX
What’s new for developers_ (August 2023).pptx
PPTX
Testing your plugins for PHP version compatibility
PPTX
Common WordPress APIs_ Global Variables
PPTX
Common WordPress APIs_ Internationalization
PPTX
Testing WordPress 6.3 - Developer edition
PPTX
Common WordPress APIs: Responsive Images
PPTX
Common WordPress APIs - Dashboard Widgets
PPTX
Custom Tables in WordPress
PPTX
The WordPress Database
PPTX
Managing a WordPress Multisite Network
PPTX
Debugging in WordPress
PPTX
Introduction to WordPress Multisite Networks
New WordPress Developer APIs The Interactivity API
The WordPress HTML API
The WordPress Create Block tool
PHP compatibility testing with PHPCompatibilityWP
Common WordPress APIs_ Settings API
Common WordPress APIs - Options API
Common WordPress APIs_ HTTP API.pptx
Common WordPress APIs: Metadata
What’s new for developers_ (August 2023).pptx
Testing your plugins for PHP version compatibility
Common WordPress APIs_ Global Variables
Common WordPress APIs_ Internationalization
Testing WordPress 6.3 - Developer edition
Common WordPress APIs: Responsive Images
Common WordPress APIs - Dashboard Widgets
Custom Tables in WordPress
The WordPress Database
Managing a WordPress Multisite Network
Debugging in WordPress
Introduction to WordPress Multisite Networks
Ad

Recently uploaded (20)

PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Cloud computing and distributed systems.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
sap open course for s4hana steps from ECC to s4
Cloud computing and distributed systems.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Encapsulation_ Review paper, used for researhc scholars
A comparative analysis of optical character recognition models for extracting...
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
MIND Revenue Release Quarter 2 2025 Press Release
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding

Developing Blocks without React - Part 2

Editor's Notes

  • #2: TITLE SLIDE: Make a copy of this presentation to your Google Drive, and edit to replace with your details.