Right after adding TypeScript into my react application, I've started getting these errors:
TS18007: JSX expressions may not use the comma operator. Did you mean to write an array?
Here are few snippets from code base in which I am getting this error:
style={pageStyles.fundContainer, { padding: updatedAt ? '8px 16px 20px 16px' : '16px 16px 20px 16px' }}
Another example:
className={ 'materialize-textarea', getErrorClass(errors, 'state') }
I am new to this codebase, but at first glance I can sense that above snippets are wrong, but not able to find anything working.
Any light on this would be really appreciated.