score:0

Accepted answer

the editor.js file is in the same directory as your app.js file, so you need to import it relative to the current directory:

import "../../css/app.scss";
import react, { component, proptypes } from "react";
import editor from "./editor";
import preview from "./preview";

class app extends component {
  render() {
    return (
      <div>
        <editor />
        <preview />
      </div>
    );
  }
}

export default app;

score:0

besides @tholle answer, also check that you are exporting your components:

class editor extends component {
  ...
  render() {
    return (...);
  }
}

export default editor;

Related Query

More Query from same tag