Turning an existing JS package into a reusable Blazor component
JS is extremely rich in open source libraries that have been around for years and solve many scenarios. One important utility you will need in almost every app is a rich text editor. The normal text input we have in HTML only allows the user to type plain text, but with a rich text editor, the user can style their content and make it more organized and aesthetically pleasing.
In the app we are developing, we have built a form so the admin can submit a new book. In this form is a description field where the user can describe the book. In this section, we are going to leverage an open source JS library that will give us a Markdown editor that is both easy and beautiful to allow an admin writing a book description to style it and add titles, sections, and even menus.
The library is called SimpleMDE – Markdown Editor and is available on GitHub under the MIT license. You can find it at the following link: https...