weatherbox:dashboard_v2:react:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
weatherbox:dashboard_v2:react:start [2018/03/01 04:17]
gli [React Design Doc]
weatherbox:dashboard_v2:react:start [2021/09/19 21:59] (current)
Line 5: Line 5:
  
 === Motivation === === Motivation ===
 +We are using React because it is one the most popular web frameworks used in production today. Created by Facebook the open-source framework has rapidly gained followers and is now used in multiple web applications today. Since the original version of the dashboard was done in Django, the next obvious step to improve the web app was to follow the open-source community and create a React application.
 ---- ----
  
Line 13: Line 13:
  
 === Technologies Involved === === Technologies Involved ===
 +
 +One of the React technologies used in our application is the React Router. Most of the code for the React Router currently can be found in index.js and the SCELMenu component. Semantic'​s Menu component thankfully takes care of handling React Router'​s Link Component so integration was simple. In order to put React Router in a new react app, we need to take care to initialize the BrowserRouter at the top most level (index.js). Most new projects come with an App.js, but you can very quickly delete App.js and create your own components once you understand how React works as a whole.
  
 ---- ----
  • weatherbox/dashboard_v2/react/start.1519877836.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)