What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-03 10:00:26
array destructuring mdn
//Without destructuring const myArray = ["a", "b", "c"]; const x = myArray[0]; const y = myArray[1]; console.log(x, y); // "a" "b" //With destructuring const myArray = ["a", "b", &... Add solution -
Javascript 2021-10-28 14:55:07
hooks in react
import React, { useState, useEffect } from "react"; export default props => { console.log("componentWillMount"); console.log("componentWillReceiveProps", props); const [x, setX] = useState(0); const [y, setY] = use... Add solution -
Javascript 2021-10-13 19:38:03
create tic tac toe game in react using jsx files
function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ); } class Board extends React.Component { renderSquare(i) { return ( <Square val... Add solution
Best helpers
Ranking is empty