I am currenlty react-big-scheduler to create my application. However, I am facing a problem replacing with my material-ui dialog.
newEvent = (...) => {
if(window.confirm('...'){
...
}
When I export material-ui dialog as a component and replaced the code to:
newEvent = (...) => {
<NewEventDialog />
}
I have the following error:
Expected an assignment or function call and instead saw an expression.
As I am new to react, my questions would be:
Thank you in advance.
you have to return the from the newEvent
Component
newEvent = (...) => {
return (<NewEventDialog />)
}