Using Local JavaScript Libraries

Import local JS libraries into our Transcrypt project.

Introduction

So now that we have the React and ReactDOM libraries installed locally, we can modify our react_hello2 files to utilize them. Then, as a housekeeping step, we can programmatically remove the global references for those libraries that are created when importing them from the HTML file by doing the following.

Run the widget below to run the server. The highlighted lines are modified.

Get hands-on with 1400+ tech skills courses.