diff --git a/package.json b/package.json index 8c5efc8c..c3b63bd9 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", + "ace-builds": "^1.4.9", "react": "^16.13.1", + "react-ace": "^8.1.0", "react-dom": "^16.13.1", "react-scripts": "3.4.1", "typescript": "~3.7.2" diff --git a/src/App.tsx b/src/App.tsx index a53698aa..4a88f26f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,12 +1,25 @@ import React from 'react'; -import logo from './logo.svg'; +import AceEditor from "react-ace"; import './App.css'; +import "ace-builds/src-noconflict/mode-python"; +import "ace-builds/src-noconflict/theme-github"; + +function onChange(newValue: string) { + console.log("change", newValue); + } + function App() { return (
Edit src/App.tsx and save to reload.