Coding After the Hospital

import React, { Component } from 'react'

export default class Comment extends Component {
render() {
return (
<div className="comment">
{this.props.commentText}
</div>
)
}
}
import React, { Component } from 'react';
// are we missing an import?

export default class BlogPost extends Component {
render() {

const comments = [
"When we speak we are afraid our words will not be heard or welcomed. But when we are silent, we are still afraid. So it is better to speak. - Audrey Lorde",
"I am no longer accepting the things I cannot change. I am changing the things I cannot accept. - Angela Davis",
"If you don't understand, ask questions. If you're uncomfortable about asking questions, say you are uncomfortable about asking questions and then ask anyway. It's easy to tell when a question is coming from a good place. Then listen some more. Sometimes people just want to feel heard. Here's to possibilities of friendship and connection and understanding. - Chimamanda Ngozi Adichie"
]

return (
<div id="blog-post" className="wrapper">
Just like moons and like suns,<br/>
With the certainty of tides,<br/>
Just like hopes springing high,<br/>
Still I'll rise.<br/>
-Maya Angelou<br/>

{/* (remove the comment ticks and their surrounding brackets)
<Comment commentText={comments[0]} />
<Comment commentText={comments[0]} />
<Comment commentText={comments[0]} />
*/}
</div>
);
}
}
import Comment from './Comment.js'

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Enums TypeScript 4.0 and JavaScript Guide — All you need to know

React frontend application using active record to interact with database.

The power of GraphQL directives

Series::Building Drag and Drop Dynamic App

8 Code Smells

The Complete Guide to Setting Up React Native

Desk setup

Loading a directory as a tree structure in Node

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Parker Williamson

Parker Williamson

More from Medium

Three Important Pillars To Invest Successfully

Blogs: Week of 4 Apr — 10 Apr

Day 11: Fridays are for Frittatas?

What I Learned From My First Ever Failed Kickstarter Campaign