const props = defineProps<{ msg: string initialNumber: number }>() const numberMultiplied = computed(() => { return multiplication(props.initialNumber) }) <div>{{ numberMultiplied }}</div> //INTO THE IMPORT OF THE COMPONENT <HelloWorld msg="You did it!" initial-number="5" />
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter