Topic: Using mdbreact on server side rendering (hydrate method)
Inderjeet Singh free asked 6 years ago
HiI am not able to use to mdbreact with my code which is running on server side. Please let me know how to use it.
Here's the code:
import React from \'react\'; import { Provider } from \'react-redux\'; import { BrowserRouter } from \'react-router-dom\'; import { renderRoutes } from \'react-router-config\'; import { hydrate } from \'react-dom\'; import \'font-awesome/css/font-awesome.min.css\'; import \'bootstrap/dist/css/bootstrap.min.css\'; import \'mdbreact/dist/css/mdb.css\'; const render = AppRoutes =>{ hydrate( <AppContainerwarnings={false}> <Providerstore={store}> <BrowserRouter>{renderRoutes(AppRoutes)}</BrowserRouter> </Provider> </AppContainer>, document.getElementById(\'root\') ); }; render(routes);
arvinLogik free answered 6 years ago
Jakub Mandra staff commented 6 years ago
Hi,
Unfortunately not yet. Our priority now is to bring all the components from jQuery version, which is mother of our package.
Jakub Mandra staff answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No