mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 13:09:51 -06:00
archive ReactApp
This commit is contained in:
21
react_OLD/src/componets/TimeItem.js
Normal file
21
react_OLD/src/componets/TimeItem.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
|
||||
export default class TimeItem extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.date = props.date;
|
||||
this.classes = props.classes;
|
||||
this.item = (
|
||||
<>
|
||||
<h2>{props.title}</h2>
|
||||
<div className="timeline-deets">
|
||||
<p>{props.children}</p>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <div className={"timeitem " + this.classes}><p className="datetext">{this.date}</p><div className="timeline-item">{this.item}</div></div>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user