JSFoo Pune 2019

JSFoo is a JavaScript conference hosted by HasGeek.

React Suspense, lazy and all about Hooks

Submitted by Vivek Nayyar (@viveknayyar09) on Sunday, 4 November 2018

videocam_off

Technical level

Intermediate

Section

Full talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +1

Abstract

Sophie Alpert and Dan Abramov introduced Hooks, which are a new proposal that adds the ability to access features such as state without writing a JavaScript class. Hooks promise to dramatically simplify the code and are currently available in a React 16.7 alpha release.

We also have a React.lazy API for code splitting and React.Suspense.

The talk would focus on explaining these concepts with some live coding examples and how it can help restructure our apps.

Outline

  • What was the problem with React classes?
  • What are hooks and what problem do they solve?
  • Easy code splitting with React.lazy api and Suspense
  • Suspended rendering with React.suspense
  • Writing your new react components with hooks (Keeping in mind that this still is an alpha release)

Requirements

N/A

Speaker bio

Front-End Engineer with 4 year’s of experience building products for numerous domain’s like e-commerce, real estate, video-streaming and now Fin-Tech.

Links

Slides

http://jsfoo-react-new-api.surge.sh

Comments

Login with Twitter or Google to leave a comment