The day was heading to an end. Mike and Shawn were still discussing about this shiny new thing—JSX. Mike decided that it was time to tell Shawn about the issues with using JSX.
"Shawn, so how do you feel about using JSX?"
"I liked it so far. It's very similar to the HTML markup. I can pass attributes, styles, and even classes. I can also use all the DOM elements" explained Shawn.
"Yes. But JSX is not HTML. We have to always remember this. Otherwise, we will run into trouble."
"For example, if you want to pass some custom attribute that does not exist in the HTML specification, then React will simply ignore it."
// custom-attribute won't be rendered <table custom-attribute = 'super_awesome_table'> </table>
"It must be passed as a data attribute so that React will render it."
// data-custom-attribute will be rendered <table data-custom-attribute = 'super_awesome_table'> </table>
"We may also run into some issues while rendering the HTML content dynamically. In the...