React and Codepen

Hi, I can’t add my project on Codepen. All settings are correct, I added bubble and react with react dom, but it still doesn’t work.

There is my github repository with project:

There is my codepen page:
https://codepen.io/SerafimPoch/pen/ddVYVL

In codepen you can check developer’s console for errors, in your case it’s Component is undefined.

Which means that you need to indicate full path, for example class App extends React.Component, for all your components.

1 Like

you right =) I forgot about this cause I import like this
import React, { Component } from “react”;

https://codesandbox.io/ is much, much better than Codepen for prototyping React apps just as a heads up

2 Likes

Another great alternative is https://stackblitz.com/

1 Like

maybe you know, could I paste link from codesandbox in fcc task ?

Yes, Codepen is just a suggestion, you can host the app anywhere you want

2 Likes

thanks :slight_smile: