Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- renderButton(){
- if(this.props.coords)
- {
- return(
- <form onSubmit={this.getCurrentTempByGeo.bind(this)}>
- <button>Get Weather by Geolocation</button>
- </form>
- );
- } else {
- return (
- <span>hwdp</span>
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement