What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-17 19:22:03
react responsive screen size
const MyComponent = () => { // Declare a new state variable with the "useState" Hook const [width, setWidth] = React.useState(window.innerWidth); const breakpoint = 620; React.useEffect(() => { /* Inside of a "useEffect&q... Add solution -
Javascript 2021-08-27 23:47:02
javascript submit a form with id
// 1. Acquire a reference to our <form>. // This can also be done by setting <form name="blub" id="myAwsomeForm">: // var form = document.forms.blub; var form = document.getElementById("myAwsomeForm"); ... Add solution