© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Ali plutus
In notion.so app you can create any element by hitting / and it will pop up a window with all types of options like heading box or image box or table box ..etc. How can I create something like that with ReactJs?
Vamsi Rao
👨💻 Developer @hashnode
You can use Event Listeners for it. Attach one of the onKey event listeners like onKeyUp and check for keyCode in the event handler function.
onKey
onKeyUp
keyCode
yp I know that step my problem is how to show that popup window with my pre-created elements.
Amit Chambial
Full stack developer and a Maker
Ali plutus You have to create a modal/Dialog box.
there is one library i created for reactjs npmjs.com/package/react-simplified-modal
Vamsi Rao
👨💻 Developer @hashnode
You can use Event Listeners for it. Attach one of the
onKeyevent listeners likeonKeyUpand check forkeyCodein the event handler function.