You should generally only use .tsx extensions for files that include tsx syntax (i.e. psuedo dom elements that get transpiled to actual ts code). Typically, this also wouldn't go in the components dir since it's just a helper and doesn't proved a component.
You should generally only use .tsx extensions for files that include tsx syntax (i.e. psuedo dom elements that get transpiled to actual ts code). Typically, this also wouldn't go in the components dir since it's just a helper and doesn't proved a component.
https://github.com/droneshire/dealanalyzer/blob/42c14590838684bfc521270ac0ea08dae8c975ba/src/components/Property.tsx#L1