+ 2

how to run REACT code on the play ground

I am trying to code in react in the playground, i know it hard to run REACT on the playground but I tried to call the libraries. it seems that it needs more specifications please edit my code in order to run. thanks. https://code.sololearn.com/W9GLcM6mhfO2/?ref=app

19th Jun 2019, 8:11 PM
Ahmad Ali
Ahmad Ali - avatar
2 Answers
+ 3
Correction: ReactDOM.render(<ShoppingCart />, document.getElementById('root')); you should use development react libs for ease of debugging used. eg. <script src="https://unpkg.com/react@16.7.0-alpha.0/umd/react.development.js"></script> <script src="https://unpkg.com/react-dom@16.7.0-alpha.0/umd/react-dom.development.js"></script>
20th Jun 2019, 12:27 AM
CalviŐ˛
CalviŐ˛ - avatar