Skip to content

karolkochan/fronto-material-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fronto MaterialUI

React component connecting your Fronto config with application created using material-ui.


fronto.io

Installation

Add fronto-material-ui to your package.json:

$ npm install fronto-material-ui

Usage

Import fronto component in application entry file and wrap your app with it:

import React from 'react';
import ReactDOM from 'react-dom';
import {FrontoThemeProvider} from 'fronto-material-ui';

import YourAppRootComponent from './YourAppRootComponent';
 
function App() {
  return (
    <FrontoThemeProvider clientId={'5b1acfb121652a131b0662c6'}>
      <YourAppRootComponent/>
    </FrontoThemeProvider>
  );
}
 
ReactDOM.render(<App />, document.querySelector('#app'));

About

Fronto theme provider wrapper for React MaterialUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published