Move all samples to the root dir
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
26
react-express-mysql/frontend/src/app/pages/home/HomePage.jsx
Executable file
26
react-express-mysql/frontend/src/app/pages/home/HomePage.jsx
Executable file
@@ -0,0 +1,26 @@
|
||||
import * as React from "react";
|
||||
import { connect } from "react-redux";
|
||||
|
||||
require("./home.scss");
|
||||
|
||||
const mapStateToProps = (state, props) => {
|
||||
return {};
|
||||
};
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {};
|
||||
};
|
||||
|
||||
class HomePage extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="home-page page">
|
||||
<h1>My New React App</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(HomePage)
|
6
react-express-mysql/frontend/src/app/pages/home/home.scss
Executable file
6
react-express-mysql/frontend/src/app/pages/home/home.scss
Executable file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
.home-page {
|
||||
background-color: blue;
|
||||
color: red;
|
||||
}
|
7
react-express-mysql/frontend/src/app/pages/home/index.js
vendored
Executable file
7
react-express-mysql/frontend/src/app/pages/home/index.js
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
import * as React from "react";
|
||||
import { Route } from "react-router-dom";
|
||||
import HomePage from './HomePage';
|
||||
|
||||
const route = <Route path="/" exact key="home" component={HomePage}/>;
|
||||
|
||||
export default route;
|
Reference in New Issue
Block a user