Skip to content

Instantly share code, notes, and snippets.

View izadiegizabal's full-sized avatar
🌚
henlo

Izadi Egizabal Alkorta izadiegizabal

🌚
henlo
View GitHub Profile
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' + '&';