Using mdbreact on server side rendering (hydrate method)


Topic: Using mdbreact on server side rendering (hydrate method)

Inderjeet Singh 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 answered 6 years ago

Hi Jakub, Has there been an update on this? I would love to use this library with Next JS.

Jakub Mandra staff premium 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 premium answered 6 years ago

Hello, We do not support server side rendering currently, but we have plans to do so.   Regards, Jakub from MDB
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
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No