---
title: "Hiep Tran (@tranhiepqna) | Hashnode"
description: "Software Developer. Read the latest articles by Hiep Tran on Hashnode."
url: "https://hashnode.com/@tranhiepqna"
---

@tranhiepqna

# Hiep Tran

@tranhiepqna · Joined November 2020

Software Developer

## Comments

[Hi there, Thank you for your content, I've learned a lot from your post. However, I see you make some mistakes during using auth context. First, you created auth context in src/auth/AuthContext.ts but you imported the context from ./auth/Context instead of ./auth/AuthContext. The second problem I saw in your code that AuthContext may be undefined, we should use optional chaining to avoid Object is possibly 'undefined' error.](https://hashnode.com/posts/the-advanced-guide-to-react-context-with-hooks/6057bf4f63a05a21443f3717/comment/6058085163a05a21443f397f)

Comment · Article · Mar 22, 2021 · [The advanced guide to React Context with hooks.](https://hashnode.com/posts/the-advanced-guide-to-react-context-with-hooks/6057bf4f63a05a21443f3717)
