After attending the online course of React JS fundamentals, I added this blog component to this site using React JS. Here are some of my feelings toward React JS:
1. JSX is not a big deal
- Some people are arguing if we should put the html-like code, JSX in the javascript. I don't feel that this is a big deal as it is just like splitting the components up. The only I have to get used to is that some keywords are changed for the sake of reversed keywords of Javascript, like "class" and "className".
2. Ready for Single Page Application (SPA)
- As the library will pack the all the components into a single js file, this blog page can only include a single js library to sustain for the while blog application. The transitions between pages are purely powered by javascript (react-router) which can boost up the performance and keep track the whole state of the app.
P.S. actually, this is also a test post for the blog feature. 😏
沒有留言:
張貼留言