In material UI docs, the implementation of Dialog box is with the help of onClick of a Button. But can the Dialog box can be appear using the if-else condition in the render method of the component? Like in a login form, if the credentials are correct then go the next component, and if not then a pop up Dialog box should appear using the if-else condition on the props that i get from the redux store.
Thanks for the help in advance.