25
loading...
This website collects cookies to deliver better user experience
react-something
packages are based on old-style class-based integration that includes a third-party and a react wrapper that defines new things for each existing API in that third party. The best available method is to bind a ref
filling the integration gap through the react ref system.react-aptor
, based solely on integration mechanisms, removing the middle effect of react packages entirely.doom.js
, featured just recently on npm. The doom package has been developed in typescript compatible with all frameworks and libraries. Now the community tries to help the author and make integrated packages on their own 🙌️.react-doom
. It is going to be something like this:<ReactDoom
src={'video-url'}
isPlaying={false}
ref={playerRef}
/>
playerRef.current
doom.js
to change the speed of the video.react-doom
package and use the new 2x feature on our videos.Published 25 days ago
, Okay let’s check their issue, it must be under doing
board2 months ago
react-aptor
then you have all the functionality.useEffect
doom.js
API using forwardRef
raptor-doom
.doom.js
package and use the rate feature out of the box.<RaptorDoom isPlaying={isPlaying} ref={ref} />
<button onClick={() => {ref.current._doom.setRate(2)}}>
speed up
</button>
react-aptor
helps you to make this process as easy as one react hook call.const Connector = (props, ref) => {
const aptorRef = useAptor(ref, {
// a function which returns a slice of doom.js apis
getAPI,
// a function which instantiate doom.js player
instantiate,
// anything to be used in both getAPI, instantiate
params: props
});
// accessing node using returned ref
return <div ref={aptorRef} />;
};
react-aptor
within a minute.1.04kB
functional version of react-howler.