This file contains 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
const CommentForm = () => { | |
let author, text; | |
const submitForm = e => { | |
e.preventDefault(); | |
console.log(author.value); | |
console.log(text.value); | |
}; | |
return ( | |
<form onSubmit={submitForm}> | |
<input type="text" ref={node => author = node} placeholder="Name" /> |
This file contains 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
//Sample code to read in test cases: | |
var fs = require("fs"); | |
fs.readFileSync(process.argv[2]).toString().split('\n').forEach(function (line) { | |
if (line !== "") { | |
//do something here | |
//console.log(answer_line); | |
var makeArray = function(number) { | |
return number | |
.toString() | |
.split('') |
This file contains 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
.row { | |
margin-left: -15px; | |
margin-right: -15px; | |
} | |
.row:before, | |
.row:after { | |
content: " "; | |
/* 1 */ | |
display: table; |
This file contains 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
<div class="styled-select"> | |
<label class="styled-select__label"> | |
Select Country | |
</label> | |
<select class="styled-select__select js-styled-select__select" name="countries" id="countries"> | |
<option value="" selected disabled>Select Country</option> | |
<option value="United Kingdom">United Kingdom</option> | |
<option value="Germany">Germany</option> | |
<option value="United States">United States</option> | |
<option value="France">France</option> |