Traditionally web.config is the old way Microsoft get used to for handling configuration files. web.config is not necessarily needed to deploy a React application in IIS. However it is often used to configure IIS to serve application correctly for reasons like URL rewriting, MIME types, CORS, static file serving.