renderScheduleEvent return default rendering

I want to use renderScheduleEvent to override some events but the rest I want them to be rendered normally. What do I do?

const renderEvent = React.useCallback((data) => {
    if(data.original.isClockIn) {
        return <div>X So and So clocked in</div>;
    }
    //Here I just want to return something that tells it that I just want it to render the default event. 
    return <div>blah</div>;
});

return <div>
    <button onClick={clockin}>Clock In</button>
    <Eventcalendar
        view={view}
        data={data}
        invalid={invalids}
        clickToCreate={true}
        dragToCreate={true}
        dragToMove={true}
        dragToResize={true}
        renderScheduleEvent={renderEvent}
    />
</div>

Hello Michael,

You can achieve this by returning the replica of the original event. It would look something like this:

const renderEvent = React.useCallback((data) => {
    const ev = data.original;
    const color = ev.color || '##5ac8fa';
    const theme = 'mbsc-ios'; // your theme name
    const isAllDay = data.allDay;

    if (data.original.isClockIn) {
      return <div>X So and So clocked in</div>;
    } else {
      return <React.Fragment>
        <div
          className={'mbsc-schedule-event-background mbsc-timeline-event-background ' +
            (isAllDay ? ' mbsc-schedule-event-all-day-background' : '') + theme}
          style={{ background: data.style.background }}
        />
        <div
          className={'mbsc-schedule-event-inner ' + theme +
            (isAllDay ? ' mbsc-schedule-event-all-day-inner' : '') +
            (data.cssClass || '')
          }
          style={{ color: color }}>
          <div
            className={'mbsc-schedule-event-title ' + (isAllDay ? ' mbsc-schedule-event-all-day-title ' : '') + theme}
          >
            {data.title}
          </div>
          {!isAllDay && <div className={'mbsc-schedule-event-range ' + theme}>
            {data.start} - {data.end}
          </div>}
        </div>
      </React.Fragment>
    }
  }, []);