Coding task · Vue.js course · Module 14: Directives & Plugins

Practice: Functional Component

Create a functional component StationBadge using the h() function.

Task

Implement StationBadge(props) as a function returning h('span', ...) with props.label and props.color.