Skip to content

Instantly share code, notes, and snippets.

View 01Clarian's full-sized avatar

Clarian 01Clarian

  • NFTuity
  • New York
View GitHub Profile
@01Clarian
01Clarian / Weather.js
Created November 16, 2019 15:14
Building Weathe.js Component
import React from 'react'
const Weather = ({description, city, country, error, temperature}) => {
return (
<div>
{city && country && <p>{city}, {country}</p>}
{temperature && <p>{temperature}</p>}
{description && <p> {description}</p>}
{error && <p>{error}</p>}
</div>
@01Clarian
01Clarian / Form.js
Created November 16, 2019 15:06
Building Form For Hooks Weather App
import React from 'react'
const Form = (props) => {
return (
<form onSubmit={props.getWeather}>
<input
type='text'
placeholder='city'
name='city'
/>
@01Clarian
01Clarian / Form.js
Last active November 16, 2019 14:55
import React from 'react'
const Form = (props) => {
return (
<form onSubmit={props.getWeather}>
<input
type='text'
placeholder='city'
name='city'
/>