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:
@@ -1,3 +1,3 @@
|
||||
.Home {
|
||||
.home {
|
||||
padding: 10px;
|
||||
}
|
||||
@@ -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
2
app/pages/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './home/home';
|
||||
export * from './not-found/not-found';
|
||||
@@ -1,4 +1,4 @@
|
||||
.NotFound {
|
||||
.not-found {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
padding-top: 200px;
|
||||
@@ -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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user