Functional Component on Sidebar

Hi, I have seen the example on the component Sidebar but most of the example are based on class.

I would like to perform open/close of the Sidebar using Function Component based on this example:
https://ej2.syncfusion.com/react/demos/#/material/sidebar/sidebar-menu

How do i go about doing this in typescript functional component?

Thanks

1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team March 2, 2021 11:12 AM UTC

Hi ONG YU FENG,  
 
Greetings from Syncfusion support. 
 
We have checked your requirement with Sidebar component. For your reference we have prepared a sample for sidebar component using functional component of react. 
 
Please, refer the below sample link. 
 
 
Please, refer the below documentation for your reference. 
 
 
Please, refer to the below link for Sidebar component. 
 
 
 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Up arrow icon