Is it possible to get the following code to function? I’m getting the error that an external definition should have at least one primitive, but I thought for a silly moment I could solve that by using a functor. Is there anything I can do to get this to work without typing out code for each element?
Yeah, that’s what I was sort of hoping to get around here. Framer Motion provides wrapper components for elements, such as <motion.div />, <motion.span /> … etc. So my idea was to provide the functor with the element (with ElementType.t) and use that for the bindings. I guess I’ll just have to type them out as I go? No biggie, I was just wondering if I could make this a tad easier
oh no indeed, you can use functors for the types of the externals, but not for the name of the binding. I have no idea how arbitrary this limitation is.