Closed malangfox closed 2 years ago
It seems pretty and convenient to declare react and vue hooks examples in a spread format if possible.
And there is no need to use value in template.
<div id="box" ref="box" :style="{ transform: `rotateY(${rotateX}deg) rotateX(${rotateY}deg)` }">
const {
rotateX,
rotateY,
connect,
onHold,
= useAxes();
return {
rotateX,
rotateY,
};
Details
This adds vue2-axes which provides
useAxes
hook that can be used in vue 2.Example