Hey @krrish,
Since you are using the Web SDK in React, can you checkout this React sample app I have made:
Thanks, Tommy