What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-20 06:25:16
javascript window.onpopstate example
window.onpopstate = function(event) { alert("location: " + document.location + ", state: " + JSON.stringify(event.state)); const urlParams = new URLSearchParams(window.location.search); const myParam = urlParams.get('myParam'); ... Add solution -
Javascript 2022-02-02 19:51:32
select everything but an element in react
import reactDom from "react-dom"; import history from "../history"; const Modal = () => { return reactDom.createPortal( <div onClick={() => history.push("/")} className="ui dimmer modals visib... Add solution -
Javascript 2022-01-28 20:26:48
google sign in in firebase react
//add to your firebase.js file: google provider sign-in const googleProvider = new firebase.auth.GoogleAuthProvider(); export { firebase, db, auth, functions, googleProvider } //Actions/GoogleAuthentication.js import { firebase, googleProvider, db } from... Add solution -
Javascript 2022-01-26 05:17:04
react bulma login
import React from 'react' import axios from 'axios' import { useHistory } from 'react-router-dom' function Login() { const history = useHistory() const [formData, setFormData] = React.useState({ email: '', password: '', }) const handleChan... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5