React JS: Why you should never use it
12th July 2017
What is React JS?
The function below calls the
render() function, and renders a
header tag, with the name of the user logged in. If no user is logged in, the message ‘Not Logged In’ is displayed instead.
Why should you never use React JS?
1. It’s unnecessarily large
The basic file size of React is over 100kb. That’s just the basic file size! To make it anything like suitable to use on a website, extra files need to be included to allow it to do anything. It really isn’t worth the extra bloat it adds to websites… just to create a view layer on the front-end.
2. It’s not semantically correct code
$.html(); function of jQuery or other functions which output the code.
3. It’s not Standards compliant
4. It’s super slow
5. It’s 9 times out of 10 the wrong context to use it
React is built for Web Apps! These are applications that run in the browser that process ‘big data’, and have constantly refreshing elements of the page. Facebook is a Web App, it has updating notification icons, chat functions, news ticker, and updating page titles when new messages / notifications come in. The majority of websites will not have these functions, so there won’t be anything on the website that can’t be done in a more versatile language such as jQuery.
Use languages that are suited to the website, and the page will load faster, use semantically correct code, comply with Web Standards, and not have any code that does not serve a viable purpose.