returns a valid jsonx.children property that's either an array of JSONX objects or a string
Used to pass properties down to child components if passprops is set to true
React key property
returns a valid Valid JSONX Child object or a string
returns React Child Elements via JSONX
returns a valid jsonx.children property
const sampleJSONX = { component: 'div', props: { id: 'generatedJSONX', className:'jsonx', }, children: [ { component: 'p', props: { style: { color: 'red', }, }, children:'hello world', }, { component: 'div', children: [ { component: 'ul', children: [ { component: 'li', children:'list', }, ], }, ], }, ], }; const JSONXChildren = getChildrenProperty({ jsonx: sampleJSONX, }); //=> [ [jsonx Object],[jsonx Object]] const JSONXChildrenPTag = getChildrenProperty({ jsonx: sampleJSONX.children[ 0 ], }); //=>hello world