score:1

class Example extends component {
  constructor(props){
      super(props);
      this.state={};
    }
   render() {
      // Destructure url from props
      const { url } = props;

      // return some JSX
      return (
        <a href ={url}>
          <div>hello</div>
         </a>
       )
     }
}

Related Query

More Query from same tag