This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import renderHTML from 'react-render-html'; | |
import { Page, Navbar, List, ListItem } from 'framework7-react'; | |
import '../css/posts.css'; | |
import { API_BASE_URL } from '../js/constants'; | |
// Extract to configuration file | |
const ALL_POSTS = 'posts?'; | |
const PER_PAGE = 'per_page='; | |
const BASE_API = API_BASE_URL + ALL_POSTS + '&' + PER_PAGE + '20' + '&'; |