Use the RotatePage component to rotate a particular page
The rotate plugin provides the `RotatePage` component for rotating a given page. Its children is a function that accepts a `RenderRotatePageProps` parameter and returns a React element.
const rotatePluginInstance =rotatePlugin();
const{RotatePage}= rotatePluginInstance;
<RotatePage>
{(props:RenderRotatePageProps)=>(
// Renders the output
)}
</RotatePage>
The `RenderRotatePageProps` type provides the `onRotatePage` property that can be used to rotate a single page in the given direction: