Tree shaking is a term commonly used in the JavaScript world for dead-code elimination. This process can significantly reduce the code size of our JavaScript. The less code we send over the wire the more performant a webpage will be.

Tree shaking is especially handy for when you are creating a bigger complex component that has a lot of Javascript, and that is loading in Third-party libraries.