1
0
Fork 0

MARKDOWNIT

This commit is contained in:
Amarpreet Minhas 2019-05-27 21:54:59 -04:00
parent a53fb5fb50
commit 3b89174969

View file

@ -1,4 +1,5 @@
import React from 'react';
import ReactMarkdown from 'react-markdown';
import { connect } from 'react-redux';
import { fetchPosts } from '../actions';
@ -16,7 +17,7 @@ class PostList extends React.Component {
<div className="content">
<div className="description">
<h2>{post.title}</h2>
<p>{post.content}</p>
<ReactMarkdown source={post.content} />
</div>
</div>
</div>