Function MainGridComponent

MainGridComponent is a React functional component that renders a main grid container with optional children components and a meeting progress timer.

import React from 'react';
import { MainGridComponent } from 'mediasfu-reactjs';

function App() {
return (
<MainGridComponent
backgroundColor="black"
height={100}
width={100}
showAspect={true}
timeBackgroundColor="white"
showTimer={true}
meetingProgressTime="10:00"
>
<ChildComponent />
</MainGridComponent>
);
}

export default App;

Properties

propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.


const MyComponent: FC = () => {
return <div>Hello!</div>
}

MyComponent.displayName = 'MyAwesomeComponent'