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

350
Views
React : How to get the Value of a nested function?

I have this example functions. How do I get the value of somVariableB as output in Main() ? I get only the undefined inside the console back.

export function childA(dbData) {

  var someVariableB = dbData.VariableB;

   return {
     <svg>
      <div>someVariableB</div>
     </svg>

import childA from ...

export function someFunctionB(dbData){
  return {
    <svg>
      <div> {childA(dbData)}</div>
    </svg>
}

import someFunctionB from ...
import someJsonDbData from ....

export function Main() {
 return (
       
        <div>
          { childB(someFunctionB(someJsonDbData).get("someIndex)}
        </div> )
    }
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!