I am trying to render multiple images dynamically using a function call. Inside the src attribute for the IMG tag, I am passing the require(src) too, but I get the error of can't find the module.
getImages(ID) {
        return this.state.imgData[ID].map((row, index) => {
            return (
                <div className = "col-lg-4 col-md-4 col-sm-6">
                    <h5 style = {{textAlign: "center"}}>{this.state.dates[ID][index].split("/").join("-")}</h5>
                    <div className = "thumbnail">
                        <img src = {require(row)}></img>
                    </div>
                </div>
            );
        });
    }
But when I try this by manually typing in the string of what's inside the row variable, it seems to work.