MARKDOWNIT
This commit is contained in:
parent
a53fb5fb50
commit
3b89174969
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import ReactMarkdown from 'react-markdown';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { fetchPosts } from '../actions';
|
import { fetchPosts } from '../actions';
|
||||||
|
|
||||||
|
@ -16,7 +17,7 @@ class PostList extends React.Component {
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<div className="description">
|
<div className="description">
|
||||||
<h2>{post.title}</h2>
|
<h2>{post.title}</h2>
|
||||||
<p>{post.content}</p>
|
<ReactMarkdown source={post.content} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue