Hello, I wanted to import an external React component, generated in webpack (Bundle.js) to my Asp.net MVC application. I am trying to import the "Bundle.js" file to my page and render the React component in the babel script tag, but nothing happens. What is the correct way to import an external component of a webpack library into a View?
Here's an example of how I'm doing, "CustomTextBox" is the component I want to use that is inside bundle.js:
<script src="~/Scripts/bundle.js"></script>
<script type="text/babel">
ReactDOM.render(
<CustomTextbox />,
document.getElementById('timer')
);
</script>