It is currently Mon Oct 07, 2024 2:56 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to get the Value of a nested function
PostPosted: Thu May 26, 2022 6:57 am 
Newbie
Newbie

Joined: Fri Apr 01, 2022 11:32 am
Posts: 6
Hi
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> )
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011