What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 19:45:39
react hook example
// Hooks let you build stateful and dynamic components import React, { useState } from 'react'; function Example() { // Declare a new state variable, which we'll call "count" const [count, setCount] = useState(0); return ( <div> ... Add solution -
Javascript 2022-01-30 17:56:08
audio in react
import React, { useState, useEffect } from "react"; const useAudio = url => { const [audio] = useState(new Audio(url)); const [playing, setPlaying] = useState(false); const toggle = () => setPlaying(!playing); useEffect(() =>... Add solution -
Html 2022-01-30 04:50:41
HTML DOM insertAdjacentElement() Method
<!DOCTYPE html> <html> <body> <h1>HTML DOM insertAdjacentElement() Method</h1> <p>This method inserts a specified element, into a specified position.</p> <span style="color:red">My span</span... Add solution
Best helpers
Ranking is empty