1 | import React from 'react';
|
2 | import ReactDOM from 'react-dom';
|
3 | import { AppContainer } from 'react-hot-loader';
|
4 |
|
5 | const path = require('path');
|
6 |
|
7 | const config = require(path.resolve(process.cwd(), '/cherry.config.js'));
|
8 |
|
9 |
|
10 | class App extends React.Component {
|
11 |
|
12 | render() {
|
13 | return <div> {path.resolve(process.cwd(), '/cherry.config.js')}</div>;
|
14 | }
|
15 | }
|
16 |
|
17 | const render = (Component) => {
|
18 | ReactDOM.render(
|
19 | <AppContainer>
|
20 | <Component/>
|
21 | </AppContainer>,
|
22 | document.getElementById('root')
|
23 | );
|
24 | }
|
25 |
|
26 | render(App);
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
\ | No newline at end of file |