I just want to change color of text using style in tag
How can I do that?
You can do it like below :
Hello world
React treats style attribute as an object. So we have to provide double quotes "{{ }}" and inside that is our css code. Also the notation should be camel-case. e.g. {{backgroundColor: 'red'}}
camel-case
{{backgroundColor: 'red'}}