• I’ve built a gallery plugin that uses rest & react to display image galleries in the WP front end. It has a bunch of elements that would be useful in the plugin’s admin pages. I’m trying to use ReactDOM and React to do this – see code below. I some undefines; ReactDOM, React and wp – DaisyOverlay is the element, wp is used in that element. How do I include these? Or am I going about this the wrong way.

    	window.addEventListener('DOMContentLoaded', (event) => {
    		ReactDOM.render( React.createElement( 
    			DaisyOverlay, [  ] ), 
    			document.getElementById( 'da-comp') 
    		)
    	})

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘React in an admin page’ is closed to new replies.