O'Reilly logo

Cross-platform Desktop Application Development: Electron, Node, NW.js, and React by Dmitry Sheiko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the feed component

Finally, we take care of the main section where we are going display active feed content:

./app/ts/Components/Feed.tsx

import * as React from "react"; 
import { Card, CardTitle, CardActions, Button, CardText } from "react-mdl"; 
 
export default class Feed extends React.Component<{}, {}> { 
  render(){ 
    return ( 
      <div className="page-content feed-index"> 
        <div className="feed-list"> 
 
          <Card shadow={0} style={{width: "100%", height: "auto",           margin: "auto"}}> 
             <CardTitle expand style={{color: "#fff", backgroundColor:              "#46B6AC"}}> 
             Title 
             </CardTitle> 
             <CardText> 
                  Lorem ipsum dolor sit amet, consectetur adipiscing  elit. Cras lobortis, mauris quis mollis porta </CardText> <CardActions border> <Button colored>Open</Button> </CardActions> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required