FreeHostia Forums https://forum.freehostia.com/ |
|
How to get the Value of a nested function https://forum.freehostia.com/viewtopic.php?f=8&t=66247 |
Page 1 of 1 |
Author: | Ricky786 [ Thu May 26, 2022 6:57 am ] |
Post subject: | How to get the Value of a nested function |
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> ) } |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |