This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const MyComponent = () => { | |
}; |
I hereby claim:
- I am nienow on github.
- I am randombitsdev (https://keybase.io/randombitsdev) on keybase.
- I have a public key whose fingerprint is E698 8A5D 5FE9 9AFC 9283 9644 773F EE42 B67B F950
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DragDropComp = () => { | |
const onDragStart = (e) => { | |
const clone = e.target.cloneNode(true); | |
e.dataTransfer.setDragImage(clone, 0, 0); | |
}; | |
const onDragOver = (e) => { | |
// if is droppable | |
e.preventDefault(); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {createContext, useContext, useState} from 'react'; | |
import {createPortal} from "react-dom"; | |
import {styled} from "goober"; | |
import {useTitle} from "../hooks/useTitle"; | |
import {useDialog} from "./DialogProvider"; | |
import ChangeEditor from "../components/ChangeEditor"; | |
import {getFrameIndex} from "../utils"; | |
import {frameMediator} from "../mediator"; | |
const Overlay = styled('div')` |