2014. augusztus 4., hétfő

React JS: JSX vs JS


I recently attended a ReactJS workshop and all the examples were provided in plain JavaScript, I know that the ReactJS examples are mainly provided in JSX. What do people prefer and why?


I'm currently on the side of plain JavaScript as I feel that it looks cleaner, removes the need to add raw HTML to your JavaScript, takes away the need for an extra compile step and lastly gives you some sort of linting/syntax highlighting and code competition.






Nincsenek megjegyzések:

Megjegyzés küldése