Testing the web application

Now, it's time to test the web portion of our application and see how the component behaves. Let's get started:

  1. Run the application with the npm start command. You should see the following in the window:

Note that the # hello value that we provide from within our Editor component is default text.
  1. Navigate to https://microsoft.github.io/monaco-editor/, as shown in the following screenshot:

  1. Select the markdown example from the dropdown and copy the content of the example.
  2. Switch back to your application and paste the content into the text editing area.
  1. Your editor should now look as follows:

Notice how the editor formats the text and provides syntax highlighting. This means you have got your component up and running successfully.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.161.77