react capitalize first letter

Solutions on MaxInterview for react capitalize first letter by the best coders in the world

showing results for - "react capitalize first letter"
Marlene
12 Jan 2018
1<Text>{str.charAt(0).toUpperCase() + str.slice(1);}</Text>
2
Juliana
03 Sep 2019
1// I think the best way is to do it using styles (it will work for any UI framework)
2// JS
3<Text class="capitalize-me">sometext</Text>
4// CSS
5.capitalize-me::first-letter {
6  text-transform: capitalize;
7}
similar questions
queries leading to this page
react capitalize first letter