React and Codepen

React and Codepen
0

#1

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:


#2

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.


#3

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


#4

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


#5

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


#7

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


#8

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


#9

thanks :slight_smile: