Created
July 31, 2019 16:59
-
-
Save jamesvidler/ee2d5789326279d5f589c3bce7792df0 to your computer and use it in GitHub Desktop.
Agility React Component Example
This file contains 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, { Component } from 'react'; | |
import './Jumbotron.css' | |
class Jumbotron extends Component { | |
render() { | |
return ( | |
<section className="jumbotron"> | |
<h1>{this.props.item.fields.title}</h1> | |
<h2>{this.props.item.fields.subTitle}</h2> | |
</section> | |
); | |
} | |
} | |
export default Jumbotron; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment