What is webpack and why do we use it

Web pack is a static module bundler used in modern javascript applications. In react we use webpack alongside with babel to transpile the ES6 code to ES5 and provide the bundled js file in vanilla javascript which is understood by all browsers and works fine without any hastles.