<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>React app builder &gt; Metasys Software Pvt Ltd.</title>
	<atom:link href="https://www.metasyssoftware.com/tag/react-app-builder/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.metasyssoftware.com</link>
	<description>Unique People, Unique Solutions</description>
	<lastBuildDate>Mon, 27 May 2024 12:49:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.metasyssoftware.com/wp-content/uploads/2023/10/metasys-svg-.png</url>
	<title>React app builder &gt; Metasys Software Pvt Ltd.</title>
	<link>https://www.metasyssoftware.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Effective use of Context in a React Application</title>
		<link>https://www.metasyssoftware.com/react/context-in-react/</link>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Mon, 26 Apr 2021 11:41:15 +0000</pubDate>
				<category><![CDATA[React]]></category>
		<category><![CDATA[React JS development company]]></category>
		<category><![CDATA[React Hooks]]></category>
		<category><![CDATA[React app builder]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[React bootstrap]]></category>
		<category><![CDATA[Outsourcing React development]]></category>
		<category><![CDATA[Offshore React services]]></category>
		<category><![CDATA[React JS]]></category>
		<category><![CDATA[React developer]]></category>
		<guid isPermaLink="false">https://www.metasyssoftware.com/?p=3550</guid>

					<description><![CDATA[<p>The prerequisite to comprehend this article is a fair knowledge of Hooks. Hooks is a new addition in React 16.8 [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/react/context-in-react/">Effective use of Context in a React Application</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p><em>The prerequisite to comprehend this article is a fair knowledge of Hooks. Hooks is a new addition in React 16.8 that let you use state and other React features without writing a class. </em></p>
<p>In a React application, we can pass data from parent component to child components using the prop. However, this is limited to certain type of properties such as Theme, locale preference, etc., which need to be used at global level in the application. With React Context, we can use the data or props without explicitly passing them as props to the component.</p>
<p><strong>Context has three main elements. We need to understand these elements to utilize Context to the fullest. </strong></p>
<ol>
<li><strong>Context Object</strong><strong> &#8211; </strong>The Context object is designed to share data globally in the application.</li>
<li><strong>Context Provider</strong><strong> &#8211; </strong>The Context object comes with a provider that can be used to consume Context data in the React component.</li>
<li><strong>Context Consumer</strong><strong> &#8211;</strong> The Context Consumer is wrapped inside the Context provider, and it is used to get access to the Context data.</li>
</ol>
<p><strong>In this article, let us see how to create a Theme Context using typescript step by step. </strong></p>
<p>1.Create Theme Context Object. Export ThemeContext and set the Context default value to ‘undefined’.</p>
<p><img fetchpriority="high" decoding="async" class="wp-image-3551 size-full aligncenter" title="Theme context object " src="https://www.metasyssoftware.com/wp-content/uploads/Theme-context-object-1.png" alt="Theme context object " width="642" height="231" /></p>
<p>2.Create the Theme object by using two Themes, for instance, here we are going to use ‘dark’ and ‘light’.</p>
<p><img decoding="async" class="aligncenter wp-image-3552 size-full" title="Create Theme Object " src="https://www.metasyssoftware.com/wp-content/uploads/Create-Theme-Object-2.png" alt="Create Theme Object " width="332" height="275" /></p>
<p>3.Create Theme Context provider.</p>
<p><img decoding="async" class="wp-image-3553 size-full aligncenter" title="Theme Context Provider " src="https://www.metasyssoftware.com/wp-content/uploads/Theme-Context-Provider-3.png" alt="Theme Context Provider " width="642" height="408" /></p>
<p>4.We created the Theme Context Provider by setting the Default Theme and function to change the Theme.</p>
<p>5.Subscribe Theme Context by wrapping the component with Context provider.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3554 size-full" title="SubscribeThemeContext " src="https://www.metasyssoftware.com/wp-content/uploads/SubscribeThemeContext-4.png" alt="SubscribeThemeContext " width="642" height="175" /></p>
<p>6.Use or set the Context data as shown in the screenshot below.</p>
<p><img loading="lazy" decoding="async" class="wp-image-3555 size-full aligncenter" title="Context data React " src="https://www.metasyssoftware.com/wp-content/uploads/Context-data-React-6.png" alt="Context data React " width="642" height="309" /></p>
<p><strong>The concept of Context is simple yet effective. </strong>In this article, we covered how to use Context in the React Application with Theme Context example using TypeScript.</p>
<p>Should you have any queries, please contact MetaSys Software React experts, who have abundant experience in engineering applications using latest dev-tools such as React-Redux, <a href="https://www.metasyssoftware.com/react">React Hooks</a>, React Router, React Bootstrap, etc.</p>
<p>You can reach out to us with any coding queries too! We would be happy to help!</p>
<p style="text-align: center;">Happy Coding!</p>The post <a href="https://www.metasyssoftware.com/react/context-in-react/">Effective use of Context in a React Application</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Create a React Native NPM Package?</title>
		<link>https://www.metasyssoftware.com/react/react-native-npm-package/</link>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Tue, 23 Mar 2021 10:34:14 +0000</pubDate>
				<category><![CDATA[React]]></category>
		<category><![CDATA[React Native NPM package]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[React Native debugger]]></category>
		<category><![CDATA[React native app development React developer]]></category>
		<category><![CDATA[React developers]]></category>
		<category><![CDATA[React development services]]></category>
		<category><![CDATA[React Native]]></category>
		<category><![CDATA[Outsourcing React services]]></category>
		<category><![CDATA[React native developer]]></category>
		<category><![CDATA[Outsourcing React development]]></category>
		<category><![CDATA[React app builder]]></category>
		<category><![CDATA[React Native app development company]]></category>
		<category><![CDATA[React Native mobile app]]></category>
		<category><![CDATA[React Native development company]]></category>
		<guid isPermaLink="false">https://www.metasyssoftware.com/?p=3511</guid>

					<description><![CDATA[<p>NPM is a Package Manager for Node JS. It was first created in 2009 as an open-source project to help [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/react/react-native-npm-package/">How to Create a React Native NPM Package?</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p>NPM is a Package Manager for Node JS. It was first created in 2009 as an open-source project to help JavaScript developers to easily share their code in the form of packages. NPM allows you to install the various public packages for the project. NPM has over 8,00,000 packages with public access.</p>
<p>My intention behind writing this blog is to help <a href="https://www.metasyssoftware.com/react-native-app-development/">React-native developers</a> create their own package. If any developer wants to share his own package on the NPM registry, then he needs to make it public. This allows developers to contribute to the NPM ecosystem. Steps to create and publish a react-native NPM package are as follows:</p>
<p><strong>There are 3 phases to create and publish a package.</strong></p>
<p>1. Creating the NPM package.<br />
2. Testing the NPM package on the react-native app.<br />
3. Publishing on the NPM website.</p>
<p><strong>1. Creating the NPM package:</strong></p>
<p>First create a folder where package information like package.json, .babelrc, webpack.config.js, etc will be stored. We will introduce these files soon.</p>
<p>Now navigate into that folder directory using terminal and run command &#8211; npm init</p>
<p>You will be prompted for the package name, version, main, keyword, etc. You can skip questions (by pressing enter) (it is easy to modify later). At this point, a package.json file will be created.</p>
<p>Now, open the package.json file in your IDE (code editor) and install all the dependencies as below using &#8211; npm install dependency-name.</p>
<p>Below is an example of package.json file.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3512 size-full" title="Package JSON " src="https://www.metasyssoftware.com/wp-content/uploads/Package-JSON-1.png" alt="Package JSON " width="533" height="581" /></p>
<p>Note: “main&#8221; should be the same as above.</p>
<p>Now create a file .babelrc and add the following lines. Babel is a compiler to convert JavaScript code into ES5 JavaScript.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3513 size-full" title="React Native image " src="https://www.metasyssoftware.com/wp-content/uploads/React-Native-image-2.png" alt="React Native image " width="689" height="120" /></p>
<p>Let’s create a file named webpack.config.js and add the lines below.<br />
Remember, webpack is the builder. It compresses code into &#8216;build&#8217; that can be deployed in the React-Native app. Make sure “entry” is either ./src/index.js or ./index.js depending upon your file structure.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3514 size-full" title="webpack " src="https://www.metasyssoftware.com/wp-content/uploads/webpack-3.png" alt="webpack " width="808" height="606" /></p>
<p>Now, create a folder src, add the index.js file and add your component.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3515 size-full" title="src image" src="https://www.metasyssoftware.com/wp-content/uploads/src-4.png" alt="src image" width="757" height="364" /></p>
<p>Whenever you make any change to your package, you have to create the build again using command &#8211; npm run build. After that, you must re-install it in the react-native app.</p>
<p>Once you configure the above steps, your folder structure should look as follows</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3516 size-full" title="React test library " src="https://www.metasyssoftware.com/wp-content/uploads/React-test-library-5.png" alt="React test library " width="348" height="330" /></p>
<p><strong>2. Testing the package on React-Native app:</strong></p>
<p>To test or use your package, you will need a React-Native app. Create a <a href="https://www.metasyssoftware.com/case-study-react-native/">React-Native</a> app by executing the run command npm create-react-app “your app name” and open it in your IDE.</p>
<p>You can install your package in two ways</p>
<p>1. Upload it on the NPM website and then install it using npm i “package name”.<br />
2. Locally install it through a relative path of NPM package to react-native app npm i ../react-test-library</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3518 size-full" title="React Native " src="https://www.metasyssoftware.com/wp-content/uploads/React-Naive-9.png" alt="React Native " width="213" height="70" /></p>
<p>Note: We will try to avoid the first option because whenever there is any change in your NPM package, you have to re-publish it on the NPM website and re-install it on your project.</p>
<p>So we will test it locally first and then upload it on the NPM website.</p>
<p>To check your package, you have to install it through the relative path as shown in the above example and import your component from your package.</p>
<p>src/App.js</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3519 size-full" title="src " src="https://www.metasyssoftware.com/wp-content/uploads/src-6-1.png" alt="src " width="550" height="343" /></p>
<p>To see the result of the installed package, run the command in your react-native app &#8211; npm start.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3520 size-full" title="npm package " src="https://www.metasyssoftware.com/wp-content/uploads/npm-package-7.png" alt="npm package " width="422" height="128" /></p>
<p>Now, let’s see the final step.</p>
<p><strong>3. Publishing on the NPM website:</strong></p>
<p>For publishing any package, you should have an account on the NPM website (if not you can create one). While uploading the same package, the package version should be unique each time.</p>
<p>Steps to upload your package &#8211;</p>
<p>1. Using the terminal, navigate to your package directory.<br />
2. Run command &#8211; npm login. Enter a username, password, and email id.<br />
3. Run command &#8211; npm publish.</p>
<p>Once your package has been published, you can check it on the NPM website.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3521 size-full" title="React test library " src="https://www.metasyssoftware.com/wp-content/uploads/React-test-library-8.png" alt="React test library " width="600" height="114" /></p>
<p>At last, you are able to create your own library. In case of any queries feel free to share your feedback in the comments section below.</p>
<p>Happy Coding…</p>The post <a href="https://www.metasyssoftware.com/react/react-native-npm-package/">How to Create a React Native NPM Package?</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to implement Internationalization for a React Application</title>
		<link>https://www.metasyssoftware.com/react/how-to-implement-internationalization-for-a-react-application/</link>
					<comments>https://www.metasyssoftware.com/react/how-to-implement-internationalization-for-a-react-application/#respond</comments>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Fri, 20 Nov 2020 12:39:34 +0000</pubDate>
				<category><![CDATA[React]]></category>
		<category><![CDATA[Outsourcing React development]]></category>
		<category><![CDATA[Offshore React services]]></category>
		<category><![CDATA[Outsourcing React development company]]></category>
		<category><![CDATA[React JS]]></category>
		<category><![CDATA[React developer]]></category>
		<category><![CDATA[React Native app development]]></category>
		<category><![CDATA[React native developer]]></category>
		<category><![CDATA[React app]]></category>
		<category><![CDATA[React app builder]]></category>
		<category><![CDATA[React Native app development company]]></category>
		<category><![CDATA[React Native development]]></category>
		<guid isPermaLink="false">http://stage.metasyssoftware.com/?p=3440</guid>

					<description><![CDATA[<p>Internationalization of an application, document or product refers to the development of easy content localization, i.e. modifying the content to [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/react/how-to-implement-internationalization-for-a-react-application/">How to implement Internationalization for a React Application</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p>Internationalization of an application, document or product refers to the development of easy content localization, i.e. modifying the content to target the language and culture of the region. Internationalizing an application leads to improved usability by people located across the globe.</p>
<p>There are two main aspects to internationalization, firstly the detection of the user’s local language, and secondly the modification of the content, including translation of the text, and switching relevant items such as currency.</p>
<p>This article addresses how to implement the internationalization of a React application using the library ‘React-intl’. The first step is to create a new React project and add the intl package:</p>
<ul>
<li>Create a React project using the commands –</li>
</ul>
<p><em>$ npx create-react-app project_i18n</em></p>
<p><em>         $ cd project_i18n</em></p>
<ul>
<li>Add the &#8216;react-intl&#8217; package.</li>
</ul>
<p>Configuration of the package consists of four main steps: creating the locales, creating the provider, and finally creating a common translator. In the remainder of this article, I will elaborate on these steps.</p>
<p>1. Create the locales –</p>
<p>a.Create a folder with the name ‘<em>i18n’</em> in your code folder.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3227 size-full" title="i18n folder 2" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_1.png" alt="i18n folder 2" width="260" height="229" /></p>
<p>b.Create a file <em>&#8216;locale.js&#8217;</em> and export the locales object.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3228 size-full" title="locale js3" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_2.png" alt="locale js3" width="373" height="154" /></p>
<p>2. Create the provider –</p>
<p>a.Now, let’s create the Provider to hook the IntlProvider to the application.<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-3229 size-full" title="INTLprovider4" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_3.png" alt="INTLprovider4" width="461" height="307" /><br />
In the above image, IntlProvider is imported from react-intl and a wrapper is created for the application, setting the default locale and passing the message content according to the locale.</p>
<p>b.To create the messages for the respective languages, create a folder called ‘<em>MessageContent’</em> and create the locale files for messages within that folder.<br />
Let us create two different message objects.<br />
For English: &#8211; en-US.js –</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3231 size-full" title="EN-US5" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_4.png" alt="EN-US5" width="643" height="272" /></p>
<p>For French:- fr-CA.js –</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3232 size-full" title="FR-CA 6" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_5.png" alt="FR-CA 6" width="643" height="242" /></p>
<p>c. Create an ‘<em>js’</em> file under the MessageContent folder to export the messages.<br />
MessageContent-&gt; index.js –</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3233 size-full" title="Messagecontent 7" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_6.png" alt="Messagecontent 7" width="642" height="237" /></p>
<p>3. Create a common translator –</p>
<p>a.Let us create a common Translate function to translate the message according to the locale.<br />
i18n-&gt; translate.js –</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3234 size-full" title="Commontranslator8" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_7.png" alt="Commontranslator8" width="639" height="124" /></p>
<p>b.Create <em>‘index.js’ </em>under the ‘<em>i18n’</em> folder to export the locales and provider as default.<br />
i18n-&gt; index.js –</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3235 size-full" title="index.js9" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_8.png" alt="index.js9" width="642" height="85" /></p>
<p>c.Finally, let us wrap the application with IntlProvider and set the locale in App.js.<br />
src-&gt; App.js –</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3236 size-full" title="wrappingapp10" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_9.png" alt="wrappingapp10" width="643" height="520" /></p>
<p>Example for French Locale –</p>
<p>fr-CA.js</p>
<p>export default {</p>
<p>[LOCALES.FRENCH]: { &#8216;hello&#8217;: &#8216;Bonjour&#8217;, &#8216;userName&#8217;: &#8216;le nom d\&#8217; utilisateur est {uname}&#8217;</p>
<p>}</p>
<p>};</p>
<p>translate.js</p>
<p>const translate = (id, value={}) =&gt; &lt;FormattedMessage id={id} values={{…value}}/&gt;</p>
<p>d. We are looking for the following output:</p>
<p>translate(‘hello&#8217;)  =&gt; Bonjour</p>
<p>translate(&#8216;userName&#8217;, {&#8216;uname&#8217;: ‘Sam&#8217;}) =&gt; le nom d&#8217; utilisateur est Sam</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3237 size-full" title="Bonjour11" src="https://www.metasyssoftware.com/wp-content/uploads/2022/07/iir_10.png" alt="Bonjour11" width="659" height="260" /></p>
<p>Internationalization can be achieved in react application by using ‘React-intl&#8217; with minimal development efforts for handling multiple languages.</p>
<p>MetaSys has developed custom React solutions for clients across various industries and geographies. If you have any questions on internationalization in your <a href="https://www.metasyssoftware.com/case-study-react-native">React</a> projects, then please feel free to contact us. Happy coding!</p>The post <a href="https://www.metasyssoftware.com/react/how-to-implement-internationalization-for-a-react-application/">How to implement Internationalization for a React Application</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.metasyssoftware.com/react/how-to-implement-internationalization-for-a-react-application/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
