While most CSS code functions properly in React JS, I have encountered an issue with using text-indent
to create a hanging indent. A hanging indent involves the first line of text being positioned to the left. In standard CSS, I would typically utilize text-indent: -10px
and it would work as expected. However, within React JS, attempting something like textIndent: "-10px"
does not yield the desired result.
Why does React JS seem to disregard this specific CSS property? Are there any alternative approaches that can be taken?