Skip to content

Commit

Permalink
Merge pull request #17 from p2hacks/feature/kumakou/#6
Browse files Browse the repository at this point in the history
add pre.js
  • Loading branch information
kumakou authored Dec 11, 2019
2 parents f214f28 + 0e8bae5 commit 9d313e4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2hacks/src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

import React from 'react'
import Pre from './pre';
import { Route, Switch } from 'react-router'
import PropTypes from 'prop-types'
import { ConnectedRouter } from 'connected-react-router'
Expand All @@ -12,6 +14,7 @@ const App = ({ history }) => {
<ConnectedRouter history={history}>
<div>
<Switch>
    <Route exact path="/Pre" component={Pre} />
<Route exact path="/" component={Home} />
<Route exact path="/Home" component={Home} />
<Route exact path="/Confirm" component={Confirm} />
Expand Down
20 changes: 20 additions & 0 deletions p2hacks/src/pre.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';

const Pre = (props) => {
return (
< form method='post'>
<p>
<input type="email" name="email"></input>
</p>
<p>
<input type='text'></input>
</p>
<p>
<input type="submit" value="送信する"></input>
</p>
</form >
)

}

export default Pre;

0 comments on commit 9d313e4

Please sign in to comment.