decoding base 64 in reactjs code example Example: javascript base64 decode var decodedString = atob(encodedString);