Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 534 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 534 Bytes

Lazy Loading in React

This repository shows the code used in the “Lazy Loading” lessons of The Joy of React.

The relevant files are:

  • The root page.js, which shows a conditionally-rendered math equation
  • the latex-editor/page.js, which shows an immediately-rendered and editable math equation

Note that both of these examples use React.lazy() instead of Next's dynamic() function because we haven't yet covered dynamic(). In a real application, I recommend using dynamic() instead.