So i have this react component I wanted to use inside a plain html page served by flask
All works fine with my build/development with gulp But now i wanted to use a specific part in my flask app
So in my app.js I have
var RenderX = function() {
ReactDOM.render(
<Example/>, document.getElementById('app')
);
};
exports = RenderX;
Now I want to call this function inside my html page (served by flask)
<script src="/static/scripts/vendor.js"></script>
<script type="text/javascript" src="/static/scripts/app.js"></script>
<script type="text/javascript">RenderX();</script>
It tells me RenderX can not be found
How can i solve this problem I am facing
I want to migrate some part of my code bit by bit to react.