Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBreact kit not showing components?

Ominous Vibes priority asked 3 years ago


I just bought MDB and downloaded the React advanced kit. There are three folders: mobile, public, and src.

When I loaded the Index.html in chrome, it shows a blank page, without the components, am I doing something wrong here? (I'm new to using react)


Krzysztof Wilk staff answered 3 years ago


Hi!

I assume that you opened this file just as regular HTML. React is different - it has to compile all of your code and render it in the Virtual DOM. You can check our installation guide on how to properly use your package https://mdbootstrap.com/docs/react/getting-started/installation/ :)

If I misunderstood you or some other problems occur - feel free to write here :)

Keep coding!


Ominous Vibes priority commented 3 years ago

I did a read-through of the installation guide, but I'm not too sure how to use it on a pre-existing package. When I ran npm install and npm start, it led me to a localhost link on my browser saying "./src/Routes.js Attempted import error: 'Route' is not exported from 'react-router-dom'."

Thank you for your help though, I appreciate it!


Krzysztof Wilk staff commented 3 years ago

Hi!

To install an MDB React package you have to do it with npm. You should also get access to the GitLab repository. In the link above you can check how to generate an access token ("Token generation" section) and install it in the existing project ("Existing project" section) :)



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: Windows 10
  • Browser: Chrome
  • OS: Win64 bit
  • Provided sample code: No
  • Provided link: No