Support for other frameworks (e.g. Vue) #79
43081j posted onGitHub
Hello,
cool little project, have had a read through the source and seems like a nice concept. good work on pulling it together nicely π
one question i have is about your architectural choice of opting for react lock-in.
given that your architecture/process is essentially the following:
- bundle "remotion" (a bunch of react components for rendering purposes at this point) and the user's components via webpack
- visit said bundle in a browser with the frame and "composition" as parameters
- render the specified frame of the chosen "composition"
- take a screenshot
- repeat
- ultimately join these screenshots together and ffmpeg it into a video
it seems what you bundle and how doesn't really matter. you made a decision to write your rendering components in react, but it could've just as easily been a regular JS library.
do you have plans or would you ever consider reworking that part of the project to be framework-agnostic?
in reality it is a library which has been wrapped in react for sake of gaining entry into the state/ecosystem. if you reworked the bundle to instead be a library which renders "something" to DOM (still via a structured API/event flow), all frameworks would work with remotion and you'd open the door to a lot larger audience.
a simpler way of achieving that would be to separate the react rendering into its own package and maintain a core renderer which is framework-agnostic.
the cool/new concept here is the rendering/video creation, not the browser components. that part doesn't really depend on react (already), which makes it so close to being usable by non-react consumers but not quite.