You can create functional components by adding functional attribute to template block,
<template functional> <div>{{ props.msg }}</div> </template>