The difference is that if you just do
<script type="text/babel">
</script>
you are not extracting the script from anywhere. But in your first example you are.
If you are extracting the code from the server, you must transfer it to the server, and then extract the result, not extract it, and then transmit it to the client.
source
share