Skip to content

Instantly share code, notes, and snippets.

@wwwhatley
Last active July 14, 2018 20:10
Show Gist options
  • Save wwwhatley/a7f0e103103929079d306f1e31c5eb4e to your computer and use it in GitHub Desktop.
Save wwwhatley/a7f0e103103929079d306f1e31c5eb4e to your computer and use it in GitHub Desktop.
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