pos. home. tile. renderTarget
Target
A static extension target that renders as a smart grid tile
Was this section helpful?
Tile
jsx
import {render} from 'preact';
export default async () => {
render(<Extension />, document.body);
};
const Extension = () => {
return (
<s-tile
heading="My app"
subheading="SmartGrid react Extension"
onClick={() => {
shopify.action.presentModal();
}}
/>
);
};
Examples
Tile
jsx
import {render} from 'preact'; export default async () => { render(<Extension />, document.body); }; const Extension = () => { return ( <s-tile heading="My app" subheading="SmartGrid react Extension" onClick={() => { shopify.action.presentModal(); }} /> ); };