Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Data Basics @wordpress/data

This example shows how to create a React app in a WordPress admin page. A detailed description of this project is available in the "How to Guide": Create your First App with Gutenberg Data (in the Block Editor Handbook)

Example Description Tags Download .zip Live Demo
Data Basics - @wordpress/data Introduction to using @wordpress/data for state management in WordPress, covering basic concepts and patterns. no-block wp-data featured 📦

Understanding the Example Code

The index.js defines a root React component containing the app (MyFirstApp) that is "inserted" in the DOM via createRoot of react-dom

Related resources


Note Check the Start Guide for local development with the examples