What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-09 18:08:02
search bar idle time react js
How about a custom hook? import {useEffect, useRef, useState} from "react"; export default function useSearchInputState(searchHandler) { // to prevent calling the handler on component mount const didMountRef = useRef(false); const [s... Add solution -
Python 2021-09-09 00:28:02
html password and username
<html> <head> <title>Account</title> <style> body { background-color:#ffda08; } table { border:1px white; margin-top:200px; margin-left:500px; background-color:white; padding:20px } #btn { width:200px; height:50px; b... Add solution -
PHP 2021-09-07 02:45:01
login javascript php
<aside id="login" class="col-md-4"> <div class="card"> <div class="card-body"> &nbs... Add solution -
Other 2021-09-06 11:00:02
hide radio button circle
<style> .opacity { position: absolute; opacity: 0; width: 0; } input[type=checkbox]+label { font-weight: normal; } input[type=checkbox]:checked+label { font-weight: bold; } input[type=checkbox]:focus+label { border: 1px dotted #000; } </sty... Add solution -
Javascript 2021-09-02 15:50:02
create dynamic fields in react
import React, { useState } from "react"; function App() { const [inputList, setInputList] = useState([{ firstName: "", lastName: "" }]); // handle input change const handleInputChange = (e, index) => { const { ... Add solution -
Html 2021-08-29 09:58:02
how to make a clear button in javascript
<script> function clear_inputs(){ inputs=document.getElementsByClassName('inputs') for(input of inputs){ input.value=' ' ///this emptys the inputs } } </script> <input class='inputs' type="text"> <input ... Add solution