DEV Community

loading...

Discussion on: Why You Should Be Using React

Collapse
javaarchive profile image
Raymond

also, it makes my code look nicer and more readable than a bunch of $(".this").doThat().toggleThat(); or lots of document.getElement... it makes things a bit more readable like you can make a comment with.

render(){
return <DOMPurify>
<Marked>
{this.props.commentContent}
</Marked>
</DOMPurify>
}
Enter fullscreen mode Exit fullscreen mode
Collapse
terrythreatt profile image
Terry Threatt Author

Yeah we love a cleaner codebase!