Editor-core - "cannot update a component from inside the function body"

Hi! I’m trying to use the editor-core repo in a basic electron app.

I inserted it into my app and see the error Cannot update a component from inside the function body (see error documentation here https://github.com/facebook/react/issues/18147). Steps to replication are:

  1. Clone this electron-react boilerplate https://github.com/electron-react-boilerplate/electron-react-boilerplate
  2. yarn add @atlaskit/editor-core @atlaskit/media-core @atlaskit/smart-card react-intl
  3. Replace Home.tsx with:
import React from 'react';
import { Link } from 'react-router-dom';

import {
} from '@atlaskit/editor-core'

import routes from '../constants/routes.json';
import styles from './Home.css';

export default function Home() {
  return (
    <div className={styles.container} data-tid="container">
      	<Editor />
      <Link to={routes.COUNTER}>to Counter</Link>
  1. yarn dev

The error appears in the sidebar. Any suggestions for fixing?