Last active
July 14, 2018 20:10
-
-
Save wwwhatley/a7f0e103103929079d306f1e31c5eb4e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 styled from 'styled-components'; | |
import {Form, Input, Title, Button} from './theme.js'; | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
<Title>Form</Title> | |
<Form> | |
<Input | |
border={errors.email && '1px solid red'}; | |
type="text" | |
name="email" | |
placeholder="Email" | |
/> | |
<Input | |
border={errors.password && '1px solid red'}; | |
type="password" | |
name="password" | |
placeholder="Password" | |
/> | |
<Button type="submit">Submit</Button> | |
</Form> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment