In index.html data is passed to stencil component
<app-root
      data="{abc@gmail.com,def@gmail.com}"
</app-root>
App-root stencil Component
import { Component, h, Prop } from "@stencil/core";
@Component({
  tag: "app-root",
  styleUrl: "app-root.css",
  shadow: true,
})
export class AppRoot {
  @Prop() data: [];
  
  render() {
  return (
      <div>
        {this.data.map(m=>{
        return  <div>
          <h1>{m}</h1>     
          </div>  
        }   
       </div>
  }
}
How to get single data inside h1 tag, while using this way it shows undefined on the screen.