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.
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023