What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-25 00:15:26
javascript text auto writing
/* Creating a Typing Effect ----------------------------- 1) Add HTML: */ <p id="demo"></p> <button onclick="typeWriter()">Click me</button> /* 2) Add JavaScript: */ var i = 0; var txt = 'Lorem ipsum typing e... Add solution -
Javascript 2022-03-16 20:15:02
how to create table using DOM
function render(){ for (let i = 0; i < allMovie.length; i++) { tr = document.createElement('tr'); tr.setAttribute("class", "mainTR"); table.appendChild(tr); var td1 = document.createElement('td'); td1.textConten... Add solution -
Javascript 2022-03-16 18:05:04
react useeffect common dependency
import React, { useState, useRef, useEffect } from "react"; function EffectsDemoNoDependency() { const [title, setTitle] = useState("default title"); const titleRef = useRef(); useEffect(() => { console.log("useEffect... Add solution -
Javascript 2022-03-12 16:35:07
prism react renderer
jsximport React from 'react'import styled from 'styled-components'import { AiOutlineLike } from 'react-icons/ai' const LikeButton = () => { const [value, setValue] = React.useState(0) return ( <Wrapper> <div> <button onC... Add solution -
Other 2022-03-10 02:40:09
on click unmount the component
import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; function LifecycleDemo() { // Pass useEffect a function useEffect(() => { // This gets called after every render, by default // (the first one, and every... Add solution -
Html 2022-03-01 05:45:04
HTML DOM insertAdjacentText() Method
<!DOCTYPE html> <html> <body> <h1>HTML DOM insertAdjacentText() Method</h1> <p>This method inserts a specified text, into a specified position.</p> <h2 id="myH2">My Header</h2> <p>C... Add solution
Best helpers
Ranking is empty