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

129
Views
React: Parsing error: Identifier 'publicKey' has already been declared

I'm new to React so please bear with my naming conventions:

How can I use the same name of 2 props from two different 3rd party components?

import { useWallet} from "@solana/wallet-adapter-react";
import { useMoralis } from "react-moralis";

export const SendOneLamportToRandomAddress = () => {
   const { publicKey, sendTransaction } = useWallet();
   const { publicKey } = useMoralis();
}

It looks as if {publicKey as pK} won't work and neither does {pK : publicKey}

What am I missing?

thanks

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!