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 target = path.resolve(process.cwd(), '/cherry.config.js')
|
8 |
|
9 | const config = require(target);
|
10 |
|
11 |
|
12 | class App extends React.Component {
|
13 |
|
14 | render() {
|
15 | return <div> {path.resolve(process.cwd(), '/cherry.config.js')}</div>;
|
16 | }
|
17 | }
|
18 |
|
19 | const render = (Component) => {
|
20 | ReactDOM.render(
|
21 | <AppContainer>
|
22 | <Component/>
|
23 | </AppContainer>,
|
24 | document.getElementById('root')
|
25 | );
|
26 | }
|
27 |
|
28 | render(App);
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
\ | No newline at end of file |