0
1
mirror of https://gitlab.com/xn-02f/react-boilerplate synced 2023-04-22 17:56:08 +00:00
react-boilerplate/index.js
2019-05-26 17:17:44 +08:00

23 lines
520 B
JavaScript
Executable File

import 'normalize.css/normalize.css';
import './src/scss/index.scss';
import React from 'react';
import { render } from 'react-dom';
import App from './src/App.jsx';
render(
<App />,
document.getElementById('app')
);
/**
* Print information on the console.
* 'APP_VERSION' and 'APP_NAME' is defined in webpack config file.
*/
console.info(`%c${APP_NAME}%c
Version: ${APP_VERSION}
Copyright © ${new Date().getFullYear()}`,
'font-size: 18px; color: #3b3e43;',
'font-size: 12px; color: rgba(0,0,0,0.38);');