Skip to content

A testing plugin for exploring uses of wp.components without react.

Notifications You must be signed in to change notification settings

mateuswetah/wp-components-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP Components Test

Is it possible to use the amazing wp.components in non-react WordPress plugins?

This repository contains a plugin with a couple of tests to explore the possibilities of using the WordPress React components library outside of a React context. Inside functions.php there is a constant that may be used to switch test:

const TEST_WITH = 'JS' // or 'VUE'

The existing results are possible due to the wp.element package, which acts as a wrapper for React createElement, a limited but useful alterative to JSX.

About

A testing plugin for exploring uses of wp.components without react.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published