1620181740
If we want to add localization to a React app, we can use the react-i18next NPM package to do it.
In this article, we’ll look at how to use the Trans
component to render our translations.
The Trans
component lets render translations that have dynamic text.
#javascript
1598839687
If you are undertaking a mobile app development for your start-up or enterprise, you are likely wondering whether to use React Native. As a popular development framework, React Native helps you to develop near-native mobile apps. However, you are probably also wondering how close you can get to a native app by using React Native. How native is React Native?
In the article, we discuss the similarities between native mobile development and development using React Native. We also touch upon where they differ and how to bridge the gaps. Read on.
Let’s briefly set the context first. We will briefly touch upon what React Native is and how it differs from earlier hybrid frameworks.
React Native is a popular JavaScript framework that Facebook has created. You can use this open-source framework to code natively rendering Android and iOS mobile apps. You can use it to develop web apps too.
Facebook has developed React Native based on React, its JavaScript library. The first release of React Native came in March 2015. At the time of writing this article, the latest stable release of React Native is 0.62.0, and it was released in March 2020.
Although relatively new, React Native has acquired a high degree of popularity. The “Stack Overflow Developer Survey 2019” report identifies it as the 8th most loved framework. Facebook, Walmart, and Bloomberg are some of the top companies that use React Native.
The popularity of React Native comes from its advantages. Some of its advantages are as follows:
Are you wondering whether React Native is just another of those hybrid frameworks like Ionic or Cordova? It’s not! React Native is fundamentally different from these earlier hybrid frameworks.
React Native is very close to native. Consider the following aspects as described on the React Native website:
Due to these factors, React Native offers many more advantages compared to those earlier hybrid frameworks. We now review them.
#android app #frontend #ios app #mobile app development #benefits of react native #is react native good for mobile app development #native vs #pros and cons of react native #react mobile development #react native development #react native experience #react native framework #react native ios vs android #react native pros and cons #react native vs android #react native vs native #react native vs native performance #react vs native #why react native #why use react native
1627002240
git repository : https://github.com/jaewonhimnae/react-translation-app
if you want Class Based Code : https://github.com/jaewonhimnae/class-based-translation-app
When you want multi language app with various language,
you can follow what I have done in this video.
If you dont want to use react hook, and if you just use class based component,
you can comment right below, and let me know , I am going to write the code based on class component again !
#react #i18next #react hook #react js #react
1617601020
This article will review how to publish React components as an npm package with Babel 7 (the latest version at the time of writing) and common errors.
I found myself copy-pasting my React components from project to project and wanted to create an npm package so I could import them easily. To do that, I had to learn how to publish an npm package. It was hard to find much updated info online about publishing React components with Babel 7, and I was getting plenty of build errors, so I decided to write this as a reference. This is going to assume React competence, but little-to-no experience using npm.
Take a look at the final npm package and GitHub repo
Pre-conditions:
npm login
.npx create-react-app npm-test
. Run the app on your local machine.In the boilerplate app, I went into the **src **folder and deleted everything besides App.js, app.css, and index.js.
I also added a folder called lib
that will store everything I want to publish on npm. Inside lib
, there is a folder called components
to store the component elements and a file called index.js
to export them. (This seems to be a standard, based on other tutorials and the Carbon’s library.)
#nodejs #react #components #npm #babel
1626908040
Hello! This week we are looking into how to localise your react app react i18next. This is a lot easier than you would think! I hope you enjoy :)
Useful Links:
https://github.com/redhwannacef/youtube-tutorials/tree/master/react-localisation
#react i18next #react #react i18next tutorial
1678660557
React's core concept is the component, which is a self-contained block of code that manages its own state and can be reused throughout an application. In this article, we will discuss the basics of React components, their types, and how to create and use them effectively.
https://wp.me/peygZh-fx
#react #React #component #components #web-development #webdevelopers #javascript