App reviews, troubleshooting, and recommendations
Hi, everyone!
I want to show the button which displays "Button clicked!" on the screen using my index.js below.
import {AppProvider, Button} from '@shopify/polaris';
import React from 'react';
import ReactDOM from 'react-dom';
const app = (
<Button onClick={() => alert('Button clicked!')}>Example button</Button>
);
ReactDOM.render(app, domContainerNode);
export default app;
But then, the screen shows me "domContainerNode is not defined."
How do I fix the above to display the button?
In addition, I have already published the other files to display the button on GitHub.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023