Skip to content

Commit

Permalink
external Link fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolinowski committed Nov 8, 2017
1 parent b1b3508 commit 3e771e4
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions src/pages/nestedroutes/secondnest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Button from 'material-ui/Button'
import Autocomplete from '../../components/Autocomplete'
import FormInput from '../../components/FormInput'


class secondnest extends React.Component {

state = {
Expand All @@ -25,22 +24,30 @@ class secondnest extends React.Component {
}

render () {
return (
<div>
<h2>Autocomplete Input</h2>
<p>This input field uses <Link href="http://react-autosuggest.js.org">react-autosuggest</Link> to complete your input compared to a hard-coded list of countries starting with the letter A.</p>
<Autocomplete />
return <div>
<h2>Autocomplete Input</h2>
<p>
This input field uses <a href="http://react-autosuggest.js.org" target="_blank">react-autosuggest</a> to complete your input compared to a hard-coded list of countries starting with the letter A.
</p>
<Autocomplete />

<h2>Address Form</h2>
<p>This form adds input to component state. Submit clears the input fields, but keeps values in state - the default browser reload is prevented</p>
<FormInput onChange={fields => this.onChange(fields)} />
<p>
{JSON.stringify(this.state.fields, null, 2)}
</p><br/><br/>
<h2>Address Form</h2>
<p>
This form adds input to component state. Submit clears the input
fields, but keeps values in state - the default browser reload is
prevented
</p>
<FormInput onChange={fields => this.onChange(fields)} />
<p>{JSON.stringify(this.state.fields, null, 2)}</p>
<br />
<br />

<Link to="/nestedroutes/" style={{ textDecoration: 'none' }}><Button raised color="primary">Go back</Button></Link>
</div>
)
<Link to="/nestedroutes/" style={{ textDecoration: "none" }}>
<Button raised color="primary">
Go back
</Button>
</Link>
</div>;
}
}

Expand Down

0 comments on commit 3e771e4

Please sign in to comment.