forked from 10secondsofcode/10secondsofcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.js
More file actions
executable file
·46 lines (42 loc) · 1.05 KB
/
Main.js
File metadata and controls
executable file
·46 lines (42 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React from 'react';
import { Link } from 'react-router-dom'
import { titleMetaData } from './data';
class Main extends React.Component {
constructor(props) {
super(props);
this.state = {
count: 5,
posts1: []
}
}
componentDidMount() {
//console.log(JSON.stringify(titleMetaData));
}
render() {
return (
<div className="main thememain-white">
{
titleMetaData.map((title) =>
<div className="container content-main">
<div className="row">
<div className="col-12">
<h3>{title.labelTitle}</h3>
</div>
</div>
<div className="row">
<div className="col-sm">
<ul>
{title.topics.map((topics) =>
<li><Link to={topics.url}>{topics.title}</Link></li>
)}
</ul>
</div>
</div>
</div>
)
}
</div>
);
}
}
export default Main;