pos. product-details. action. menu-item. renderTarget
Target
A static extension target that renders as a menu item on the product details screen
Was this section helpful?
Menu item
jsx
import {render} from 'preact';
export default async () => {
render(<Extension />, document.body);
};
const Extension = () => {
return (
<s-button
onClick={() => shopify.action.presentModal()}
/>
);
};
Examples
Menu item
jsx
import {render} from 'preact'; export default async () => { render(<Extension />, document.body); }; const Extension = () => { return ( <s-button onClick={() => shopify.action.presentModal()} /> ); };