What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-25 23:24:02
javascript making a tag game
<!-- A SIMPLE SNAKE GAME MADE BY HTML AND CSS --> <!DOCTYPE html> <html> <head> <title></title> <style> html, body { height: 100%; margin: 0; } body { background: black; display: flex;... Add solution -
Javascript 2021-09-11 04:47:03
handleClickoutside custom hook react
import { useState, useEffect, useRef } from 'react'; export default function useComponentVisible(initialIsVisible) { const [isComponentVisible, setIsComponentVisible] = useState(initialIsVisible); const ref = useRef<HTMLDivElement>(null); ... Add solution