Created
July 18, 2019 21:20
-
-
Save krystofbe/c1e3dc44fc9656477dc2e7ce08447080 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 from "react"; | |
import logo from "./logo.svg"; | |
import "./App.css"; | |
const App: React.FC = () => { | |
return ( | |
<div className="App"> | |
<header className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<h1 className="App-title">Welcome to React</h1> | |
<button className="App-button">Get Started</button> | |
<input name="textInput" className="App-input" size={32} /> | |
<form className="App-form" name="testForm"> | |
<label htmlFor="App-testOne">test1:</label> | |
<input className="App-testInput" type="text" name="testOne" /> | |
<label htmlFor="App-testTwo">test2:</label> | |
<input className="App-testInput" type="text" name="testTwo" /> | |
</form> | |
<select name="testSelect"> | |
<option value="first">First Value</option> | |
<option value="second" selected> | |
Second Value | |
</option> | |
<option value="third">Third Value</option> | |
</select> | |
<input | |
name="textInput" | |
className="App-inputFile" | |
size={32} | |
type="file" | |
/> | |
</header> | |
<p className="App-intro"> | |
To get started, edit <code>src/App.js</code> and save to reload. | |
</p> | |
</div> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment