What I'm trying to do is when I have a string
'Hello. this is stackoverflow.' I want input to have 24px for font-size
when I have 'Hello. this is stackoverflow. I'm here to ask some questions.'
I want input to have 15px for font-size
however,
style={{ fontSize: string.length > 35 ? '15px' : '24px' }}
all I can do is just only one conditional style for font-size.
Is there any possible solutions? (Maybe conditional className. But I want to know how to get through this question by using inline style in JSX.)