1 2 3 4 5 6 7 8 9
/** * External dependencies */ import { RawHTML } from '@wordpress/element'; export default function Save( { attributes } ) { const { productId } = attributes; return productId ? <RawHTML>{ `[simple-payment id="${ productId }"]` }</RawHTML> : null; }