Please enable JavaScript.
Coggle requires JavaScript to display documents.
REACT (Deployment Steps (Check (& Adjust) Basepath
<…
REACT
Deployment Steps
Check (& Adjust) Basepath
- <BroserRouter basename="/my-app/" >
Build & Optmize Project
- npm run build (in the create-react-app project)
Server must ALWAYS serve index.html (also for 404 cases)
- To ensure that Routing works correctly
Upload Build Artifacts to (static) Server
- We only need to upload our build artifacts for the app to work
- They are stored in /build folder when using create-react-app
-
STATE
-
!!! UPDATING NESTED OBJECTS
The key to updating nested data is that every level of nesting must be copied and updated appropriately. This is often a difficult concept for those learning Redux, and there are some specific problems that frequently occur when trying to update nested objects. These lead to accidental direct mutation, and should be avoided.
-
-
Webpack
-
JS, CSS, JPG etc. files all are bundled and optimized
-
REST API
An architecture with just some API end-points which allow for sending and receiving data, not HTML pages.
-
-
-
-
-