-2

I try to add @googlemaps/react-wrapper in my project, following this explaination : https://developers.google.com/maps/documentation/javascript/react-map But at the first instruction i have this,

const render = (status: Status) => {
  return <h1>{status}</h1>;
};

and if i really understand it is TypeScript and my project page is in javascript, how to do the same thing in javascript ? hope that it's not a too much stupid question. thanks by advance

Code Scooper
  • 206
  • 1
  • 7

2 Answers2

-1

Just remove the type :status like purpose by @jonrsharpe

Code Scooper
  • 206
  • 1
  • 7
-1

Here's it's JavaScript conversion:

var render = function (status) {
    return { status: status } < /h1>;;
};
Beth
  • 307
  • 1
  • 4