PHP Classes

File: assets/js/pages/FullContent.js

Recommend this page to a friend!
  Classes of Rodrigo Faustino   Simple SPA   assets/js/pages/FullContent.js   Download  
File: assets/js/pages/FullContent.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple SPA
Demonstrates single page applications
Author: By
Last change:
Date: 17 days ago
Size: 486 bytes
 

Contents

Class file image Download
import Component from '../component/Component.js'; class FullContent extends Component { constructor(post) { super(); this.post = post; } render() { return ` <div class="full-content"> <h2>${this.post.title}</h2> <img src="${this.post.image}" alt="${this.post.title}" class="full-content-img"> <p>${this.post.content}</p> </div> `; } } export default FullContent;