mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-14 03:22:48 +00:00
working on css
This commit is contained in:
20
client/js/components/Previews.js
Normal file
20
client/js/components/Previews.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
|
||||
export default class Previews extends React.Component{
|
||||
|
||||
insertPosts(){
|
||||
let posts = [];
|
||||
|
||||
for (let i = 0; i < 10; i++){
|
||||
posts.push(<p key={i}>This is a test push {i}</p>);
|
||||
}
|
||||
|
||||
return posts;
|
||||
}
|
||||
|
||||
render(){
|
||||
return (
|
||||
<div class="Previews">{this.insertPosts()}</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user