Topic: How to get MDB working with a new Create-React-App

Nates premium asked 4 years ago


How do I install and get going with the pro version (which I purchased).

I used create-react-app to get my project going, what now?

Also, is there clear instructions on whether I must import CSS files in index.html in the public folder.

Nates premium commented 4 years ago

I added with a valid token to my package, and things are looking much better.. "mdbreact": "git+" I noticed in other support tickets people importing into index.js 1. how did they know to do this? Also, which oens should I import and why? Where is this documented?

Mikołaj Smoleński staff answered 4 years ago


Here is the quick installation instruction:

You will also need to import css files to Your index.js file. It should look like this:

import React from 'react';
import ReactDOM from 'react-dom';
import 'font-awesome/css/font-awesome.min.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'mdbreact/dist/css/mdb.css';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));

 Best Regards

Nates premium commented 4 years ago

Thanks, but how did you know you had to do this? The quick start does not mention this importing of CSS

Bartłomiej Malanowski staff commented 4 years ago

@Nates, Mikolaj is one of our React developers that's why he knows it ;) Also, we'll update our quick start guide to let other people know it too

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No