I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
I can’t actually find what is wrong with your code, but here is a working pen. Here is another pen that deals with data passing in React.
React is difficult to learn but very powerful and cool. It’s changed a little over the last few years (but not nearly as much as Angular) so some of the materials might be a little out of date, but they are still useful. I found going on youtube and coding along with tutorials to be quite beneficial.
Thanks. I was very curious about what I would have to include in the settings window to get React pens to work. Appreciate you taking the time to whip this up.
I know this post is old but it might help other people stopping by…
It could possibly be the Pen Settings on JS specifically. When you click the gear on the JS box, make sure “JavaScript Preprocessor” is set to “Babel”. Also, that you searched and clicked react and react-dom in the “Add External Scripts/Pens” section right under the preprocessor.
better for a React project. It is simply: New Sandbox and then they have lots of templates or one can import a Github repo. There are some nice features that Codepen does not have, one of them is the possibility to add resources and to do pair programming
/Jakob