React Js Add Element To Array Python Methods