Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
render declaration for map in javascript

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

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Here's it's JavaScript conversion:

var render = function (status) {
    return { status: status } < /h1>;;
};
about 4 years ago · Juan Pablo Isaza Report

0

Just remove the type :status like purpose by @jonrsharpe

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!