I\'m looking to modify and array in react and insert elements on specific index. This is how my state looks like:
this.state = {arr: [\'\', \'\', \'\', \'\' ]} <
use spread operator https://codeburst.io/javascript-es6-the-spread-syntax-f5c35525f754
let newChild = "newChild" this.setState({ children: [ ...this.state.children, newChild ] })