I am currently building out the front-end of a Django app and I want to use the official material design components.
However, I am running into trouble finding ways to integrate this; I want to be able to import the npm packages directly into javascript files and/or Django templates. Does anyone know how to do this?
create-react-appin that app. So node's package.json is in that folder. Then I added a url configuration in django which matches everything and renders the index.html built by react. I take care of rest of the url routing in react. I had to go through all this because I don't want to allow cros headers. If you are ok with it, what that you can create a completely separate react project and host it somewhere else.<!-- Required MDC Web JavaScript library --> <script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>, no npm/node required. But you shouldn't do this. It's right there on top(Quick Start) of material components readme, what's so complicated about it