Function createMotionComponent
- createMotionComponent<Props, Instance, RenderState>(__namedParameters): React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<Props & MotionProps> & React$1.RefAttributes<Instance>>
Type Parameters
Props extends {}
Instance
RenderState
Returns React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<Props & MotionProps> & React$1.RefAttributes<Instance>>
Create a
motioncomponent.This function accepts a Component argument, which can be either a string (ie "div" for
motion.div), or an actual React component.Alongside this is a config option which provides a way of rendering the provided component "offline", or outside the React render cycle.