Created
October 23, 2018 18:00
App.js file in BMI Calculator project
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 './App.css'; | |
import BmiCalculator from './components/BmiCalculator'; | |
class App extends Component { | |
constructor(){ | |
super(); | |
this.state = { | |
title: "BMI Calculator" | |
} | |
} | |
render() { | |
return ( | |
<div className="App"> | |
<BmiCalculator title={this.state.title}/> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment