How to import from React-Select CDN with React and Babel ?
In ReactJs, import from React-Select CDN is not done in a simple way as we do with the npm packages. To use them we need to use directly them in the HTML file. It does not work with the project set-up by creating react app.
CDN Links: To import and use React-Select with CDN with React and Babel we will take an HTML file including all the CDN links given below:
Example: Following example covers how to import from React-Select CDN with React and Babel.
Project Setup: Create a folder named example and move inside that folder and create files index.html and index.css. The project Structure will look like this.
index.css – Add these stylings into the CSS file.
Step to run the application: Open the HTML file in the browser or if having a lite server open it.
Output: Here, we are able to use the react-select with the CDN link.
Please Login to comment...