It seems that your addColor component is tsx, not jsx based on your tree. Which extension are you using now? If your current file is addColor.tsx, then you can replace it with addColor.jsx.
addColor
tsx
jsx
addColor.tsx
addColor.jsx