Laravel - Compiling Assets - React

Mix can automatically install the Babel plugins necessary for React support. To get started, add a call to the react method:

    mix.js('resources/js/app.jsx', 'public/js')

Behind the scenes, Mix will download and include the appropriate babel-preset-react Babel plugin. Once your JavaScript has been compiled, you can reference it in your application: