Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react capitalize first letter

// I think the best way is to do it using styles (it will work for any UI framework)
// JS
<Text class="capitalize-me">sometext</Text>
// CSS
.capitalize-me::first-letter {
  text-transform: capitalize;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #capitalize #letter
ADD COMMENT
Topic
Name
7+1 =