How to concatenate unicode and variable in ReactJS ? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Unicode is an encoding standard for all characters in the universe. Every language code and symbol in this world is assigned by Unicode. There is no encoding standard that supports all languages, By using the Unicode standard, we can retrieve and combine data with all language combinations. Example: U+2192In the above example, a right-facing arrow is represented in Unicode by U+2192. Prerequisites:NPM & Node.jsReact JSUnicodeparseIntString.fromCodePointApproach: To concatenate Unicode and variables in React JS we will pass the unicode value as a prop to the App component. Then, first, convert Unicode into its numerical value, and for that, we will use parseInt.parseInt(Unicode,base)Now, this numerical value needs to be converted into its character and for that, we can useString.fromCodePoint(numericalValue).Steps to Create React Application:Step 1: Create a React application using the following command. npx create-react-app geeksforgeeksStep 2: After creating your project folder i.e. geeksforgeeks, move to it using the following command. cd geeksforgeeksProject Structure: Folder structureExample: This example implement the unicode concatemation with variable using the parseInt and fromCodePoint methods. JavaScript // Filename - index.js import React from "react"; import ReactDOM from "react-dom"; import App from "./App"; ReactDOM.render( <React.StrictMode> <App unicode="2192" /> </React.StrictMode>, document.getElementById("root") ); JavaScript // Filename - App.js import React from "react"; const App = ({ unicode }) => { return ( <h1> This is a Right arrow {String.fromCodePoint(parseInt(unicode, 16))} </h1> ); }; export default App; Step to Run the Application: run the local server using the following command within the react-app directory npm startOutput: This output will be visible on the http://localhost:3000 on the browser window. Comment More infoAdvertise with us Next Article How to Create Typewriter Effect in ReactJS? S saketsug18ee Follow Improve Article Tags : Web Technologies ReactJS React-Questions Similar Reads How to convert Unicode values to characters in JavaScript ? The purpose of this article is to get the characters of Unicode values by using JavaScript String.fromCharCode() method. This method is used to return the characters indicating the Unicode values. Description: Unicode is a character encoding standard that assigns a unique number to every character, 2 min read How to pass props to ReactJS component that wrapped in variable ? To pass props to a React JS component that is wrapped in a variable we have to create some copy of the component that can be modified. As we can't access the props of that component and pass a required argument we can clone it to make the required element and use it in our application. Props: Props 2 min read How to Create Typewriter Effect in ReactJS? Learn how to enhance your React JS applications with a captivating typewriter effect using CSS and JavaScript, leveraging the typewriter-effect package for seamless and engaging UI design.ApproachTo create a typewriter effect in React, we will be using the typewriter-effect npm package. Import and u 5 min read How to Concatenate Strings in JavaScript? Here are the various methods to concatenate strings in JavaScript1. Using Template Literals (Template Strings)Template literals (introduced in ES6) provide a simple way to concatenate strings. With template literals, you can embed expressions inside a string using ${} syntax. This method makes the c 3 min read How to Render a variable as HTML in EJS ? In the EJS, the rendering of a variable as HTML consists of a specific tage through which we can control how the content is displayed. This tag involves, <% code %> that allows the execution of code without rendering, <%= code %> escapes and prints the code as HTML, while <%- code % 2 min read How to generate QR-Code using 'react-qr-code' in ReactJS ? react-qr-code is a module or package for react that provides the QRCode component to generate the code with custom values. QR code is a square grid that can easily be readable with digital devices like smartphones. Prerequisites:NPM & Node.jsReact JSApproachTo generate QR code in react js we wil 2 min read Like