{"size": 328, "ext": "js", "max_stars_repo_path": "client/src/components/community/ViewPost.js", "max_stars_repo_name": "Gator-Delivery/Gator-Delivery-App", "max_stars_repo_stars_event_min_datetime": "2020-09-10T15:08:12.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-10T15:08:12.000Z", "max_issues_repo_path": "client/src/components/community/ViewPost.js", "max_issues_repo_name": "Gator-Delivery/Gator-Delivery-App", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/components/community/ViewPost.js", "max_forks_repo_name": "Gator-Delivery/Gator-Delivery-App", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.2941176471, "max_line_length": 59, "alphanum_fraction": 0.5670731707}
import React, {useState, useEffect} from 'react';
import { getPost } from './helper';

const ViewPost = (props) => {
    const [post, setPost] = useState('');

    useEffect(() => {getPost(props.location.id, setPost)});
    return (
        <div>
            {props.post.text}

        </div>
    )
};


export default ViewPost;