react-codemirror
react-codemirror copied to clipboard
React-codemirror without webpack/browserify, with Typescript
I'm trying to install react-codemiror without webpack or browserify on an MVC 5 project that is using Typescript. I'm using the standalone distribution (dist/react-codemirror.js) which I thought would work fine. However, when I go to load the webpage, Chrome complains "Uncaught Error: Cannot find module 'react-dom." Both react.js and react-dom.js are loaded before react-codemirror.js.
The way I understand it, react.js and react-dom.js both make themselves globally available on load, so I shouldn't need to declare anything, right? Any thoughts?
Thank you!