Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
7d519f79
Commit
7d519f79
authored
Oct 14, 2018
by
Paul R Otto
Browse files
Added about page component
parent
d4abc5cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
go/go_ahead/src/Components/Pages/AboutPage.js
0 → 100644
View file @
7d519f79
import
React
from
'
react
'
;
export
default
class
AboutPage
extends
React
.
Component
{
state
=
{};
render
()
{
return
(
<
div
>
<
p
>
About
page
<
/p
>
<
/div
>
);
}
}
go/go_ahead/src/index.js
View file @
7d519f79
...
...
@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import
{
HashRouter
,
Route
,
Link
}
from
'
react-router-dom
'
;
import
{
HomePage
}
from
'
./Components
'
;
import
{
ABoutPage
}
from
'
./Components
'
;
const
Dhaynes
=
()
=>
<
p
>
dhaynes
<
/p>
;
...
...
@@ -15,9 +16,13 @@ const App = () => (
<
li
>
<
Link
to
=
"
/dhaynes
"
>
dhaynes
<
/Link
>
<
/li
>
<
/ul
>
<
li
>
<
Link
to
=
"
/About
"
>
About
<
/Link
>
<
/li
>
<
/ul
>
<
Route
path
=
"
/
"
exact
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/dhaynes
"
component
=
{
Dhaynes
}
/
>
<
Route
path
=
"
/About
"
component
=
{
AboutPage
}
/
>
<
/div
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment