Use and play with Typescript Generic like a pro.
- Conditional Types
- String Concatenate
- infer Keyword
- Type Assertion
import { useState } from 'react' | |
function App() { | |
const [inputPage, setInputPage] = useState(false) | |
const [success, setSuccess] = useState(false) | |
const [submitting, setSubmitting] = useState(false) | |
const [inputValue, setInputValue] = useState("") | |
const onNope = e => { | |
const randomX = Math.floor(Math.random() * window.innerWidth - 100) |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 | |
sudo apt-add-repository https://cli.github.com/packages | |
sudo apt update | |
sudo apt install gh |
<?= phpinfo() ?> |