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

287
Views
How to implement Tag Person on Click of Photo feature via React JS i.e. Like we tag on Instagram photos?

I've tried , I'm getting coordinates on image and can add name. But how to add kinda tooltip or input onclick on a person in a photo, and add name, which after on hover shows there???

https://codesandbox.io/s/tag-person-react-iwfi6z?file=/src/App.js

Check here, the image of the handleEvent and Output im getting

const handleClick = (e) => {
setCoordinates((prev) => {
  return {
    ...prev,
    x: e.screenX,
    y: e.screenY
  };
});

};

const handleTag = () => {
setTag((prev) => {
  return {
    ...prev,
    name: name,
    coordinates: {
      ...prev.coordinates,
      x: coordinates.x,
      y: coordinates.y
    }
  };
});
about 4 years ago · Juan Pablo Isaza
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!