Learn React, Redux, Node.js, MongoDB, GraphQL and TypeScript in one go! This course will introduce you to modern JavaScript-based web development. The main focus is on building single page applications with ReactJS that use REST APIs built with Node.js.
- Handling complex states - e.g object states, array states...
- Update object state properties efficiently.
- Performing mutation directly to a state does work sometimes
but its not a good way of mutating a state. Instead usesetState
to mutate it. - State should be treated as an immutable.
- Array Concat method returns new copy of an array with the item added to it.
- Using concat method to update array state rather than mutating it using
array.push
method which mutates the state directly. - Understand more about how conditional rendering works.
- Use the available debugging tools that browsers or IDEs offer to better understand the bug that caused the error.
- Hooks like
useState
should not be called inside loops, conditional expressions, and function defining a component. Instead, it should be called in a function that defines a React Component. - Do not define component inside of another component.
- When using a
console.log
, do not concatenate things. Instead use comma to separate those elements. - Create my custom snippets in vscode.
- Adding key attributes of objects in an array lets React know how to update the components that have been changed and will be subject to re-render.
- Use index arrays for items that is static, no ids, or is never reordered or filtered. It is not advisable to use this as it can confuse React identifying DOM elements.
- The Javascript's Event loop and how does it work along with the browser engine.
- Javascript engines are single-threaded but uses asynchronous models to run IO operations so that the browser would not freeze during an instance.
- Axios, a promise-based library, is used for establishing communication and fetch data from the server.
- Promises have three states : Pending - the final value isn't available yet ; Fullfilled - operation is completed and final value is available ; Rejected - error occured that prevented the final value being determined.
- Effects Hook performs side effects or like a background process in function component. A common examples of using the hook is by Data fetching.
- Setup a simple server using Nodejs and Express.
- Deploy a production build to the internet using Heroku.
- Create a Cloud Database using MongoDB
- Use ODM such as Mongoose to create MongoDB Schema/Models
- Perform CRUD Operations using Mongoose.
- Use environment variables to store sensitive application variables such as API Tokens for MongoDB database connection.
- Using linter like Eslint to perform syntax checks/enforce styling rules to the code.