So I am making a ReactJS app and was wondering how to get the value of a slider element in one JS file to transfer to another JS file. I am building an array of random value