convering number to string in reactjs code example Example: convert nuber into string react js var foo = 45; var bar = '' + foo;