I have an Array that I get from Props: this.arrayContenido = this.props.children;. If I console.log this, i have an array like this: https://puu.sh/Dlsce.png
ok, I need split this array for animate them with gsap. I mapped this array, and assign each element of this array to new array(this.children =[] in constructor):
{this.arrayContenido.map(function(item, i) {
return (
<div key={i} ref={div => (this.childrens[i] = div)}>
{item}
</div>
);
})}
Why when i do console.log in componentDidMount for this.childrens i have undefined results?
this.childrens[i]The plural of "child" is "children", you have "childrens"this.childrensbut in the explanation you wrotethis.children. Note thes