What do you want to save?
Add Code snippet
New code examples
-
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 -
Javascript 2022-01-30 02:56:02
javascript how to sort variables by user input
<!DOCTYPE html> <html> <body> <p>Type x, y, zand click "Sort" to get them sorted</p> <button onclick="sort()">sort</button> <p id="answer"></p> <script&g... Add solution -
Javascript 2022-01-27 19:50:47
usestate react hook
import React, { useState } from 'react'; function Example() { // Declare a new state variable, which we'll call "count" const [count, setCount] = useState(0); return ( <div> <p>You clicked {count} times</p> ... Add solution -
TypeScript 2022-01-26 05:31:20
react functional components modal
import React, { useEffect } from "react";import { createPortal } from "react-dom";import styled from "styled-components";import PropTypes from "prop-types"; const Portal = ({ children }) => { const modalRoot = ... Add solution -
Html 2022-01-24 03:20:28
how to change font size on button click in javascript
<script type="text/javascript"> var fontSizes = [ "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large" ]; function ... Add solution -
Html 2022-01-24 02:05:02
html left menu
<! HTML, later CSS, then Javascript> <!DOCTYPE html> <html> <head> <script src="YourScript.js"></script> <link href="YourCSSDocument.css" rel="stylesheet" type="text/css" ... Add solution -
Javascript 2022-01-23 07:46:23
how to use useeffect
import React, { useState, useEffect } from 'react'; function Example() { const [count, setCount] = useState(0); // Similar to componentDidMount and componentDidUpdate: useEffect(() => { // Update the document title using the browser API... Add solution
Best helpers
Ranking is empty