---
title: "React Event calendar Recurring Events Example | Mobiscroll"
component: "Event calendar"
framework: "React"
library_version: "6.2.0"
url: "https://demo.mobiscroll.com/react/eventcalendar/recurring-events"
---

# Recurring Events - React Event calendar demo

Set up daily, weekly, monthly, and yearly recurring events in a React event calendar — configure repeat patterns, stop conditions, and date exclusions. For React and Next.js.

- [Live demo](https://demo.mobiscroll.com/react/eventcalendar/recurring-events)
- [View React JS code on GitHub](https://github.com/acidb/mobiscroll-demos-react/tree/main/src/demos/eventcalendar/calendar-view/recurring-events)
- [View React TS code on GitHub](https://github.com/acidb/mobiscroll-demos-react-ts/tree/main/src/demos/eventcalendar/calendar-view/recurring-events)
- This demo in other frameworks: [JavaScript](https://demo.mobiscroll.com/eventcalendar/recurring-events.md), [jQuery](https://demo.mobiscroll.com/jquery/eventcalendar/recurring-events.md), [Angular](https://demo.mobiscroll.com/angular/eventcalendar/recurring-events.md), [Vue](https://demo.mobiscroll.com/vue/eventcalendar/recurring-events.md)

## Description

Configure `daily`, `weekly`, `monthly` and `yearly` recurring events. On top of setting up recurrence, you can exclude specific and recurring days. This is especially useful in cases when a single occurrence of an event is deleted or is moved to a different time.

You can pass the recurrence rule in the `recurring` property of the event as an object or a string in `RRULE` format. [Learn about the event data structure and where to place the recurring rules](https://demo.mobiscroll.com/react/eventcalendar/event-data-structure).

Use the configurator to experiment, build strings and objects that you can grab and use.

**Interested in adding recurrence configuration to your UI?** [Take a look at this add/edit dialog →](https://demo.mobiscroll.com/react/eventcalendar/recurring-event-add-edit-dialog)

## What this demo shows

- Shows an interactive recurrence configurator with three selectable sections for defining recurrence rules, excluded dates, and recurring exclusions.
- **Recurring rule** Displays a selectable row with an input that reflects the currently selected recurrence settings and a dark blue `Edit` button.
- **Recurring rule popup** Clicking the input or the `Edit` button opens a popup below the input.
- **Recurrence type** The top of the popup contains a segmented control with `Daily`, `Weekly`, `Monthly`, and `Yearly` options, where the selected option defines the recurrence type.
- **Repeat interval** Below the segmented control, the popup shows a `Repeat every [input] days` field with helper text explaining that the event repeats every day or every `x` days based on the entered value.
- **Stop condition** The bottom part of the popup contains a `Stop condition` section with three options for ending the recurrence.
- **Never stop** Shows an option that repeats the event indefinitely.
- **Run until date** Shows an option with a date input that opens a date picker and repeats the event until a specific date.
- **Run until occurrences** Shows an option with a numeric input that repeats the event until it reaches a specified number of occurrences.
- **Code preview** Next to the recurrence rule configurator, a code snippet updates to show the selected values and how the recurring rule should be configured.
- **Exclude specific dates** Shows a selectable section for excluding dates from recurring events with an `Exclude [input] from recurring events` field.
- **Date exclusion picker** Clicking the exclude input opens a date picker where multiple dates can be selected.
- **Recurring exclusions** Shows a third selectable section for defining a specific recurring rule for the days to exclude.
- **Recurring exclusions code preview** Next to this section, a code snippet shows the selected exclusion values and how that recurring rule should be configured.

## Best for

- **Learning recurrence setup** Explaining to Mobiscroll users how recurring event rules can be configured.

## Tutorial

### Recurring rule

- [x] Recurring Daily; Repeat every 1 day(s); Never stop;

### Add exceptions for specific days

- [ ] Exclude `2026-11-10, 2026-11-23, 2026-11-28` from recurring events

### Specify recurring rule for days to exclude

- [x] Recurring Monthly; Repeat every 1 month(s) on the First; Never stop;

### Recurrence rule

```jsx
// JS Object
recurring: {
    repeat: 'daily',
    interval: 1
}
                          
// RRULE String
recurring: 'FREQ=DAILY;INTERVAL=1'
```

With "Recurring rule" off:

```jsx

```

### Recurrence exception rule

```jsx
// JS Object
recurringExceptionRule: {
    repeat: 'monthly',
    day: 1,
    interval: 1
}
        
// RRULE String
recurringExceptionRule: 'FREQ=MONTHLY;BYMONTHDAY=1;INTERVAL=1'
```

With "Exclude from recurring events" on:

```jsx
recurringException: ['2026-11-10','2026-11-23','2026-11-28'], // Exact dates can only be passed in an array
// JS Object
recurringExceptionRule: {
    repeat: 'monthly',
    day: 1,
    interval: 1
}
        
// RRULE String
recurringExceptionRule: 'FREQ=MONTHLY;BYMONTHDAY=1;INTERVAL=1'
```

With "Specify recurring rule for days to exclude" off:

```jsx

```

## API used in this demo

- [`theme`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-theme) - option
- [`themeVariant`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-themeVariant) - option
- [`labels`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-labels) - option
- [`clickToCreate`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-clickToCreate) - option
- [`dragToCreate`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-dragToCreate) - option
- [`dragToMove`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-dragToMove) - option
- [`dragToResize`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-dragToResize) - option
- [`eventDelete`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-eventDelete) - option
- [`data`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-data) - option
- [`view`](https://mobiscroll.com/docs/react/eventcalendar/api#opt-view) - option

## Code

### JSX

```jsx
import { Eventcalendar, setOptions } from '@mobiscroll/react';
import { useMemo } from 'react';

setOptions({
  theme: 'ios',
  themeVariant: 'light'
});

function App() {
  const myEvents = useMemo(
    () => [
      {
        recurring: {
          repeat: 'daily', // Possible values: 'daily', 'weekly', 'monthly', 'yearly'
          from: '2021-06-01', // The start date of the occurrences
          until: '2021-07-20', // The end date of the occurrences
        },
        recurringException: ['2021-07-05', new Date(2021, 6, 6)], // Can contain string or date object
        recurringExceptionRule: {
          repeat: 'monthly',
          day: 1,
        },
        title: 'Holiday',
        allDay: true,
        color: 'green',
      },
      {
        recurring: {
          repeat: 'weekly',
          weekDays: 'SA', // Comma separated list of the week days, possible values: 'SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'
          interval: 2, // The time interval for the rule (every 2 weeks in this example)
        },
        title: 'Shopping day',
        color: 'orange',
      },
      {
        recurring: {
          repeat: 'monthly',
          day: 15,
          count: 12, // The number of occurrences
        },
        title: 'Pay day',
        color: 'red',
      },
      {
        recurring: {
          repeat: 'yearly',
          day: 1,
          month: 1,
        },
        title: "New Year's Eve",
        color: 'blue',
      },
    ],
    [],
  );

  const myView = useMemo(() => ({ calendar: { labels: true } }), []);

  return (
    <Eventcalendar
      clickToCreate={true}
      dragToCreate={true}
      dragToMove={true}
      dragToResize={true}
      eventDelete={true}
      data={myEvents}
      view={myView}
    />
  );
}

export default App;
```

### TSX

```tsx
import { Eventcalendar, MbscCalendarEvent, MbscEventcalendarView, setOptions } from '@mobiscroll/react';
import { FC, useMemo } from 'react';

setOptions({
  theme: 'ios',
  themeVariant: 'light'
});

const App: FC = () => {
  const myEvents = useMemo<MbscCalendarEvent[]>(
    () => [
      {
        recurring: {
          repeat: 'daily', // Possible values: 'daily', 'weekly', 'monthly', 'yearly'
          from: '2021-06-01', // The start date of the occurrences
          until: '2021-07-20', // The end date of the occurrences
        },
        recurringException: ['2021-07-05', new Date(2021, 6, 6)], // Can contain string or date object
        recurringExceptionRule: {
          repeat: 'monthly',
          day: 1,
        },
        title: 'Holiday',
        allDay: true,
        color: 'green',
      },
      {
        recurring: {
          repeat: 'weekly',
          weekDays: 'SA', // Comma separated list of the week days, possible values: 'SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'
          interval: 2, // The time interval for the rule (every 2 weeks in this example)
        },
        title: 'Shopping day',
        color: 'orange',
      },
      {
        recurring: {
          repeat: 'monthly',
          day: 15,
          count: 12, // The number of occurrences
        },
        title: 'Pay day',
        color: 'red',
      },
      {
        recurring: {
          repeat: 'yearly',
          day: 1,
          month: 1,
        },
        title: "New Year's Eve",
        color: 'blue',
      },
    ],
    [],
  );

  const myView = useMemo<MbscEventcalendarView>(() => ({ calendar: { labels: true } }), []);

  return (
    <Eventcalendar
      clickToCreate={true}
      dragToCreate={true}
      dragToMove={true}
      dragToResize={true}
      eventDelete={true}
      data={myEvents}
      view={myView}
    />
  );
};

export default App;
```

## Implementation notes

- Set `view: { calendar: { labels: true } }`.
- Add a `recurring` object to an event to make it repeat. Set `repeat` to `'daily'`, `'weekly'`, `'monthly'`, or `'yearly'`. Control the range with `from` (start date of occurrences) and `until` (end date), or cap the total count with `count`. For `weekly`, set `weekDays` to a comma-separated string of day codes (`'SU'`, `'MO'`, `'TU'`, `'WE'`, `'TH'`, `'FR'`, `'SA'`) and optionally `interval` to repeat every N weeks. For `monthly`, set `day` to the day of month. For `yearly`, set `day` and `month`. The `recurring` value can also be passed as a string in RRULE format.
- To skip specific occurrences, add a `recurringException` array of dates (strings or Date objects) to the event. To skip occurrences that match a recurring pattern, add a `recurringExceptionRule` object with its own `repeat` rule.

## Run it in your project

1. If not signed up yet, or don't own a license, you can [start a free trial](https://mobiscroll.com/starttrial).

2. Clone the repository:

   ```
   git clone https://github.com/acidb/mobiscroll-demos-react.git
   ```

3. If not installed yet, install the Mobiscroll CLI from NPM:

   ```
   npm install -g @mobiscroll/cli
   ```

4. Config Mobiscroll - open a terminal window in the root directory and run:

   ```
   mobiscroll config react
   ```

5. Install dependencies - open a terminal window in the root directory and run:

   ```
   npm install
   ```

6. Run the project:

   ```
   npm run dev
   ```

On a trial, add `--trial` to the config command: `mobiscroll config react --trial`.

Running a demo locally requires a Mobiscroll trial or a license; setup is per framework at https://mobiscroll.com/docs/react/getting-started/installation

## Related demos

- Previous: [Date Format Inputs](https://demo.mobiscroll.com/react/eventcalendar/date-object-ISO-8601-moment.md) - Pass JavaScript Date objects, ISO strings, or Moment.js dates to a React event calendar — see all three supported input formats for event data.
