Adding tailwind as css library, build config and fetch posts fix

This commit is contained in:
Moris Zen
2018-06-27 12:06:15 +02:00
parent 8dc66673d0
commit 0749dfa80b
9 changed files with 21245 additions and 10 deletions

View File

@@ -0,0 +1,29 @@
import React, { Component } from 'react';
class PostDefault extends Component {
render() {
const { data } = this.props
return (
<div>
<h1>Specific Post - {data.wordpressPost.title}</h1>
<h1>Slug - {data.wordpressPost.slug}</h1>
<div dangerouslySetInnerHTML={{
__html: data.wordpressPost.content
}}
/>
</div>
);
}
}
export const query = graphql`
query PostDefaultQuery($slug: String!) {
wordpressPost(slug: {eq: $slug}) {
title
slug
content
}
}
`
export default PostDefault;