React version 16.2.0

React version 16.2.0
0.0 0

#1

While working on CodePen, I mistakenly updated to the newest version of React (16.2.0). I had the pen working with an older version (15.6.1), but now nothing will render.

Please let me know if you can figure out my mistake. Thanks!


#2

You can go into the settings/javascript/Add External Scripts/Pens and tell it whatever cdn to whatever version you want.


#3

If you’re using chrome browser, right click and select inspect. Check the console for errors and you’ll see a few

Uncaught TypeError: Cannot read property ‘version’ of undefined

This happens with react 15 or 16 when I tried it. You’ll have to troubleshoot why


#4

Thanks! Got it working, again!


#6

Some improvements can be done in your code.

  1. remove height and add min-height for .show-grid class.
  2. You are using the ReactBootstrap library so use pre-existing classes don’t write separate CSS styles.

example:
Add circle attribute to img tag.

<img id="photo" circle src='your-pic' />

Just my 2 ¢


#7

Thank you! I will try those out!