Questions

In order to recap what we have learned in this chapter, try to answer the following questions:

  1. How are React class components defined?
  2. What do we need to call when using a constructor with class components? Why?
  3. How do we set the initial state with class components?
  4. How do we change the state with class components?
  5. Why do we need to re-bind the this context with class component methods?
  6. How can we re-bind the this context?
  7. How can we use React context with class components?
  8. What can we replace state management with when migrating to Hooks?
  9. What are the trade-offs of using Hooks versus class components?
  10. When and how should an existing project be migrated to Hooks?
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.214.215