DEV Community

Discussion on: How does Optional Chaining make React App development easier?

Collapse
 
the_startup_cto profile image
Daniel Bartholomae

If user is null, then <h1>Welcome, {user?.dispayName}</h1> will render to <h1>Welcome,</h1>, though