manniru
10/2/2017 - 11:48 PM

App.js

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import registerServiceWorker from './registerServiceWorker';

import App from './App';


ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
import React from 'react';
import Button from 'material-ui/Button';

const MannirReactComponent = () => (
    <Button raised color="accent" onClick={this.handleClick}>
        Mannir Button
    </Button>

);

export default MannirReactComponent;
import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MannirReactComponent from './MannirReactComponent';

const App = () => (
    <MuiThemeProvider>
        <MannirReactComponent />
    </MuiThemeProvider>
);

//ReactDOM.render(<App />, document.getElementById('app'));

export default App;