1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-10 17:12:48 +00:00

upgrade to webpack 4 - complete overhaul

This commit is contained in:
2018-03-19 22:19:48 -05:00
parent f4b5cd04a5
commit 85d8a4d76b
22 changed files with 11134 additions and 5818 deletions

View File

@@ -1,3 +1,3 @@
.Home {
.home {
padding: 10px;
}

View File

@@ -1,18 +1,18 @@
import React from 'react';
import { RouteComponentProps } from 'react-router-dom';
import './Home.scss';
import './home.scss';
interface Props extends RouteComponentProps<any> {}
interface State {}
export default class Home extends React.Component<Props, State> {
export class Home extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
}
render() {
return <div className="Home">test 123</div>;
public render(): JSX.Element {
return <div className="Home">test 123456</div>;
}
}

2
app/pages/index.ts Normal file
View File

@@ -0,0 +1,2 @@
export * from './home/home';
export * from './not-found/not-found';

View File

@@ -1,4 +1,4 @@
.NotFound {
.not-found {
font-size: 20px;
text-align: center;
padding-top: 200px;

View File

@@ -1,18 +1,18 @@
import React from 'react';
import { RouteComponentProps } from 'react-router-dom';
import './NotFound.scss';
import './not-found.scss';
interface Props extends RouteComponentProps<any> {}
interface State {}
export default class NotFound extends React.Component<Props, State> {
export class NotFound extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
}
public render(): any {
return <div className="NotFound">404 Not Found</div>;
public render(): JSX.Element {
return <div className="not-found">404 Not Found</div>;
}
}