daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
https://daybrush.com/moveable/
MIT License
10.1k stars 617 forks source link

Vanilla Button #452

Open AndrewPixel opened 3 years ago

AndrewPixel commented 3 years ago

Environments

Description

Is there an example of creating a custom button using vanilla javascript? I've not used React so I'm at a loss as to how to code one.

daybrush commented 3 years ago

@AndrewPixel

Use React.createElement from render second arg

Here's demo: https://codepen.io/daybrush/pen/JjXmbmb

AndrewPixel commented 3 years ago

I guess my initial post was ambiguous. Just to be clear, I want to create custom buttons without using React. I want to create custom buttons using vanilla javascript.