I want to use marked in reactjs as described in the reactjs docs.
{marked(mystring)}
I use babel so I import marked
Here's an example on how to use marked with react:
Install marked with NPM : npm i marked
import it in your react app (this example is created with create-react-app), and using it example of a react component using "marked"
result in the browser : preview