-
Notifications
You must be signed in to change notification settings - Fork 0
ToDo notes
Main.jsx
-
This.state = This.initialstate
-
Make a Data Flow Diagram and figure out which components hold which state. There are currently a bunch of things thrown into the PlanetarySim component that don't need to be there. Such as "multiplier" which is only relevent to the MainView. The PlanetarySim component should ideally only care about making sure data gets sent to the right place. It collects inputs from the interfaces, and connects them up with the displays.
See:
https://reactjs.org/docs/thinking-in-react.html -
Break apart all the junk in the render() section of PlanetarySim component. Make multiple components for each interface.
-
Create Wrappers that can replace the div surrounding the big components: MainView, ZodiacStrip, etc.
See:
https://reactjs.org/docs/composition-vs-inheritance.html
Index.html
-
Do we really need to be loading jquery???
-
CSS should be moved to a folder with .css files
MainView
- Has some hilarious code in it.
Other
-
Use Conditional Rendering and some if(ENV=='develoment') statements for the debugger, so that it doesn't get bundled into the production version, but can still exist inside the dev version
See:
https://reactjs.org/docs/conditional-rendering.html -
Linter