Advance Web Assignment 1 To 8
Advance Web Assignment 1 To 8
Advance Web Assignment 1 To 8
<html>
<body>
</body>
</html>
Add submission
render() {
return (
<form onSubmit={this.handleSubmit}> <label>
Name:
<input type="text" value={this.state.value}
onChange={this.handleChange} /> </label>
<input type="submit" value="Submit" />
</form>
);
}
}
function modulo(x) {
return function(value) {
return value % x
console.log(modulo(3)(5)) // 2
console.log(isOdd(4)) // 0 (false)
console.log(isOdd(5)) // 1 (true)
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">Dropdown</button>
<div id="myDropdown" class="dropdown-content">
<input type="text" placeholder="Search.." id="myInput"
onkeyup="filterFunction()">
<a href="#about">About</a>
<a href="#base">Base</a>
<a href="#blog">Blog</a>
<a href="#contact">Contact</a>
<a href="#custom">Custom</a>
<a href="#support">Support</a>
<a href="#tools">Tools</a>
</div>
</div>
React provides useState()Hook for It's a bit different for class components.
handling state functional components. The this keyword is required, along with
the setState() function and a
constructor.
}
}