need to create a python IDE on react application using codemirror

need to create a python editor on react application using codemirror.I need to type in the python program as well as execute it.
I am new to codemirror and react. Appreciate your help

CodeMirror does not execute code, it only provides a component that lets your users edit it.