Hi @Shailesh Jaiswal ,
According to my research and testing, SPFx can interact with other controls. Based on my testing, when we use the Modern Script Editor web part, we can interact with other Web Parts. For example, we can hide or show other Web Parts, but when I try to hide/show HTML elements in other web parts, it failed. In my test, SPFx can interact with other controls, but cannot interact with HTML elements in Web Parts.
More information for reference: Overview of the SharePoint Framework
Hope it can help you. Thanks for your understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.