externalsType: 'script', externals: { react: ['https://unpkg.com/react@16/umd/react.development.js', '_'], }, code example
Example: react cdn
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>