Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
051c6950
Commit
051c6950
authored
Aug 06, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path
parent
0e3068a1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
22 deletions
+17
-22
Login.js
src/container/Login.js
+8
-8
Register.js
src/container/Register.js
+7
-8
index.js
src/router/index.js
+2
-6
No files found.
src/container/Login.js
View file @
051c6950
import
React
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
function
Login
()
{
class
Login
extends
Component
{
render
()
{
return
(
<
div
>
<
h2
>
Login
<
/h2
>
<
/div
>
<
div
>
textInComponent
<
/div
>
);
}
}
export
default
Login
;
src/container/Register.js
View file @
051c6950
import
React
from
'react'
;
function
Register
()
{
import
React
,
{
Component
}
from
'react'
;
class
Register
extends
Component
{
render
()
{
return
(
<
div
>
<
h2
>
Register
<
/h2
>
<
/div
>
<
div
>
textInComponent
<
/div
>
);
}
}
export
default
Register
;
\ No newline at end of file
src/router/index.js
View file @
051c6950
...
...
@@ -46,15 +46,11 @@ export default function BasicExample() {
of them to render at a time
*/
}
<
Switch
>
<
Route
exact
path
=
"/"
>
<
Login
/>
<
/Route
>
<
Route
exact
path
=
"/"
exact
component
=
{
Login
}
/
>
{
/* <Route path="*">
<NoMatch />
</Route> */
}
<
Route
path
=
"/register"
>
<
Register
/>
<
/Route
>
<
Route
path
=
"/register"
exact
component
=
{
Register
}
/
>
<
Home
>
<
Route
path
=
"/home"
exact
component
=
{
Beranda
}
/
>
...
...
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