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.
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024