ReactJS Development

Third Rock Techkno is a well-known name in ReactJS development. ReactJS allows our dedicated developers to efficiently build mobile and web applications that drive business growth. Cost-effective and time-saving, are the strong points that made ReactJS is a popular framework for web app development.

ReactJS was introduced by Facebook as an open-source JavaScript library for web development. It is characterized by user-friendliness as well as developers’ convenience. It is a high-speed framework helpful in developing dynamic and user-responsive web pages. Being an open-source framework, our developers have full and free access to it.

Our ReactJS Services

  • 1. Web application development
  • 2. Interactive UI development
  • 3. Custom component development
  • 4. Mobile native app development
  • 5. ReactJS Plugin Development & API Integration

Our Existing Clients

We cater to a diverse clientele spanning across various industries.

Why Choose Us As Your ReactJS Development Company

Experienced Developers

Our highly-qualified ReactJS development experts specialize in building customized, creative and highly-interactive web and mobile applications. Whether you are a startup or an SME, our experts will get the job done.

Trusted Delivery Methods

We employ agile methodology to keep you in the loop. We focus on delivering solutions that meet your business goals, timeline, and budget.

Competitive Rates

We offer the most competitive rates on the market. Our personalized services meet different budget needs of our clients from across the globe.

Transparent Work Approach

We complete project visibility right from the time you approach us with your needs. We use email, phone, Skype, Slack, and other mediums for regular communication with our clients.

Customer Satisfaction

Our designers, developers, quality analysts, and a project manager – all strive for customer satisfaction. We deliver ReactJS development services that align with our clients’ needs.

Client Testimonials

Our WORK speaks louder than our WORD. Find out how we helped clients overcome challenges and succeed.

Smoovr

Very good communication at all stages. Always prompt to reply. Excellent quality of work. The team at Third Rock Techkno was communicative, responsive, and accommodating as they produced high-quality work.

Jonathan Wood, Smoovr

Ontime

It was a pleasure working with the TRT team. Prior to contracting this group, I had a system created that was absolutely terrible and poorly developed. I also worked with a few freelancers that couldnt cut it either. TRT was actually able to execute on our concept and have built a truly solid system for our company.

Karl Pierre, Ontime

Benefits Of ReactJS Development

Open Source

The open-source feature of ReactJS is beneficial for developers. Firstly, developers have full and free access. Secondly, the ReactJS library is constantly evolving and improving with inputs from developers all over the world. Thus ReactJS comprises the latest technological developments.

Stable Code

ReactJS allows systematic data binding. This ensures that any modifications in the child structures do not affect the parent structures. This feature simplifies the developer’s job, saving time and costs.

No Dependencies

ReactJS has a set of tools which make developer’s work quick and efficient including visualizing and debugging, editing states and properties.

Ability to Reuse Code

Developers need not develop a brand new code every time. ReactJS allows developers to reuse various code components at any given time.

Virtual DOM

An upgrade from the more time-consuming traditional DOM, Virtual DOM in ReactJS makes for a smooth UX and speeds up the developer’s work so that you can complete projects well in time.

Recent ReactJS Development Blogs

23 Nov 2020 | 3 Min Read
What’s new in React 17?

When React 17 introduced? This is major release of React after two and a half years, about to be released by end of 2020. Main purpose of React 17? This React release is primarily focused on making it easier to upgrade React itself. What are key factors which are updated in this new release? 1> React 17 is a “stepping stone” release 2> Gradual Upgrades 3> Event Delegation changes 4> Aligning with Browsers 5> No Event Pooling 6> Effect Cleanup Timing 7> Consistent Errors for Returning Undefined 8> Removing Private Exports React 17 is a “stepping stone” release -> The React 17 release is unusual because it doesn’t add any new developer-facing features. -> React 17 is a “stepping stone” release that makes it safer to embed a tree managed by one version of React inside a tree managed by a different version of React. Gradual Upgrades -> React 17 enables gradual React upgrades. -> When you upgrade from React 15 to 16 (or, soon, from React 16 to 17), you would usually upgrade your whole app at once. -> This works well for many apps. But it can get increasingly challenging if the codebase was written more than a few years ago and isn’t actively maintained. And while it’s possible to use two versions of React on the page, until React 17 this has been fragile and caused problems with events. Event Delegation changes -> In React 17, React will no longer attach event handlers at the document level. -> Instead, it will attach them to the root DOM container into which your React tree is rendered: const rootNode = document.getElementById('root'); ReactDOM.render(<App />, rootNode); -> In React 16 and earlier, React would do document.addEventListener() for most events. -> React 17 will call rootNode.addEventListener() under the hood instead. -> Thanks to this change, it is now safer to embed a React tree managed by one version inside a tree managed by a different React version. -> This change also makes it easier to embed React into apps built with other technologies. Aligning with Browsers -> The onScroll event no longer bubbles to prevent common confusion. -> React onFocus and onBlur events have switched to using the native focusin and focusout events under the hood -> Capture phase events (e.g. onClickCapture) now use real browser capture phase listeners. No Event Pooling -> React 17 removes the “event pooling” optimization from React. -> The old event pooling optimization has been fully removed, so you can read the event fields whenever you need them. Effect Cleanup Timing -> In React 17, the timing of the useEffect cleanup function more consistent. useEffect(() => { // This is the effect itself. return () => { // This is its cleanup. }; }); -> In React 17, the effect cleanup function always runs asynchronously — for example, if the component is unmounting, the cleanup runs after the screen has been updated. Consistent Errors for Returning Undefined -> In React 16 and earlier, returning undefined has always been an error: function Button() { return; // Error: Nothing was returned from render } -> In React 17, the behaviour for forwardRef and memo components is consistent with regular function and class components. Returning undefined from them is an error. let Button = forwardRef(() => { // We forgot to write return, so this component returns undefined. // React 17 surfaces this as an error instead of ignoring it. <button />; }); let Button = memo(() => { // We forgot to write return, so this component returns undefined. // React 17 surfaces this as an error instead of ignoring it. <button />; }); -> For the cases where you want to render nothing intentionally, return null instead. Removing Private Exports -> In React 17, these private exports have been removed. -> React Native for Web was the only project using them, and they have already completed a migration to a different approach that doesn’t depend on those private exports. Conclusion -> In React 17 release, Many problems has been fixed. This means that when React 18 and the next future versions come out, you will now have more options

18 Sep 2020 | 4 Min Read
Microsoft Login Integration with React

This tutorial teaches you how to build a React single-page app that uses the Microsoft Login and retrieve user information using MSAL.js and Microsoft Graph API for a logged in user. What is MSAL.js? > MSAL for JavaScript enables client-side JavaScript web applications, running in a web browser, to authenticate users using Azure AD work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through Azure AD B2C service. It also enables your app to get tokens to access Microsoft Cloud services such as Microsoft Graph. Prerequisites * You should have either a personal Microsoft account or a Microsoft work or school account. * Setup the Microsoft Azure B2C tenant [https://docs.microsoft.com/en-us/graph/tutorials/react?tutorial-step=2] * Setup the initial react app project locally. (create-react-app) Install the required client-side libraries * react-router-dom [https://www.npmjs.com/package/react-router-dom] for declarative routing inside the React app. * [bootstrap] for styling and common components. * reactstrap [https://www.npmjs.com/package/reactstrap] for React components based on Bootstrap. * fontawesome-free [https://www.npmjs.com/package/@fortawesome/fontawesome-free] for icons. * msal for authenticating to Azure Active Directory and retrieving access tokens. * microsoft-graph-client for making calls to Microsoft Graph. Add Azure AD authentication 1. Create a new file in the ./src directory named Config.js and add the following code. Replace YOUR_CLIENT_ID_HERE with the application ID from the Application Registration Portal. Config.jsImplement sign-in In this section you'll create an authentication provider and implement sign-in and sign-out. * Initialize the authentication context by instantiating a UserAgentApplication with a configuration object. The minimum required configuration property is the clientID of your application, shown as the Application (client) ID on the Overview page of the app registration in the Azure portal. AuthProvider * Now, we can integarte login flow. Your app must login the user with either the loginPopup or the loginRedirect method to establish user context. Here, I am explaining with loginPopup method. Login Popup MethodGet an access token to call an API * In MSAL, you can get access tokens for the APIs your app needs to call using the acquireTokenSilent method which makes a silent request (without prompting the user with UI) to Azure AD to obtain an access token. The Azure AD service then returns an access token containing the user consented scopes to allow your app to securely call the API. * If you are using an interactive token call, it must match the login method used in your application. (loginPopup=> acquireTokenPopup, loginRedirect => acquireTokenRedirect) Get Access Token Using acquireTokenSilent method * If the acquireTokenSilent call fails with an error of type InteractionRequiredAuthError you will need to initiate an interactive request. This could happen for many reasons including scopes that have been revoked, expired tokens, or password changes. Interaction Required Auth ErrorSave your changes and refresh the browser. Click the sign-in button and you should see a pop-up window that loads https://login.microsoftonline.com. Login with your Microsoft account and consent to the requested permissions. The app page should refresh, showing the token. Get user details > In this section you will get the user's details from Microsoft Graph. * Create a new file in the ./src directory called GraphService.js and add the following code. Get User Details using Microsoft Graph API * This implements the getUserDetails function, which uses the Microsoft Graph SDK to call the /me endpoint and return the result. * Click the user avatar in the top right corner to access the Sign Out link. Clicking Sign Out resets the session and returns you to the home page. Go and change the MSAL Configuration if you want to manipulate the authentication settings for MSAL.JS. You can find the configuration options of MSAL.JS under this link [https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications] . Storing and refreshing tokens However, this token is short-lived. The token expires an hour after it is issued. This is where the refresh token becomes useful. The refresh token allows the app to request a new access token without requiring the user to sign in again. Because the app is using the MSAL library, you do not have to implement any token storage or refresh logic. The UserAgentApplication caches the token in the browser session. The acquireTokenSilent method first checks the cached token, and if it is not expired, it returns it. If it is expired, it uses the cached refresh token to obtain a new one. Summarizing With this GitHub project [https://github.com/Pankti2612/react-msal] I am showing you how to authenticate against Azure AD using React. I will improve the current code and provide more samples on that repository. Also Please provide any feedback on this tutorial in the GitHub repository [https://github.com/Pankti2612/react-msal]. Happy coding.

17 Sep 2020 | 3 Min Read
How react hooks work?

React Hooks are introduced in version 16.8 released in February 2019. Hooks are API's or in-built functions introduced to use state and other features in React without writing a class. If you want to get started with React or React Hooks, here is official React documentation [https://reactjs.org/docs/getting-started.html]. In official documentation it only explains usage for react hooks, so we will learn about the working of hooks. Prerequisites * Should know JavaScript and React Before understanding the working of hooks let's take a quick look at the types of hooks react provide. Basic React Hooks 10 in-built hooks were shipped with React 16.8 but the basic (commonly used) hooks include: Basic Hooks [https://reactjs.org/docs/hooks-reference.html#basic-hooks] * useState [https://reactjs.org/docs/hooks-reference.html#usestate] * useEffect [https://reactjs.org/docs/hooks-reference.html#useeffect] * useContext [https://reactjs.org/docs/hooks-reference.html#usecontext] Additional Hooks [https://reactjs.org/docs/hooks-reference.html#additional-hooks] * useReducer [https://reactjs.org/docs/hooks-reference.html#usereducer] * useCallback [https://reactjs.org/docs/hooks-reference.html#usecallback] * useMemo [https://reactjs.org/docs/hooks-reference.html#usememo] * useRef [https://reactjs.org/docs/hooks-reference.html#useref] * useImperativeHandle [https://reactjs.org/docs/hooks-reference.html#useimperativehandle] * useLayoutEffect [https://reactjs.org/docs/hooks-reference.html#uselayouteffect] * useDebugValue [https://reactjs.org/docs/hooks-reference.html#usedebugvalue] Now let us understand how hooks work under the hood with the help of an example. const Counter = () => { const [counter, setCounter] = useState(0); onClick = () => setCounter(prev => prev + 1); return ( <button onClick={onClick}>Click me</button> <p>{[counter}}</p> ) } We have created a function with the name "Counter" which returns the button and counter value in view. > const [counter, setCounter] = useState(); Here we are using the useState hook which returns a current state value and a function to update current state value. Below is an example of the implementation of the useState hook function. let context = {}; // we will use this callId to persist the state for useState call let callId = -1; function render(Component) { // store the Component function to the context context.Component = Component; // invoke the Component function const instance = Component(); // render the Component instance.render(); // reset the callId after every render callId = -1; // add the instance to the context and retrun the context // so that we can invoke the other method of the instance // like so: // const context = render(Component); // context.instance.someInstanceMethod(); context.instance = instance; return context; } function useState(initialState) { if (!context) { throw new Error('hooks can not be called with out a rendering context'); } if (!context.hooks) { context.hooks = []; } callId = callId + 1; const hooks = context.hooks; const currentState = hooks[callId] ? hooks[callId] : initialState; hooks[callId] = currentState; const setState = function () { const currentCallId = callId; return function (newState) { hooks[currentCallId] = newState; render(context.Component); } }(); return [currentState, setState]; } Sample useState functionNote: This is not an exact implementation of useState that is in the original React code. In the above sample, we have a global context in which we have a component instance in context so we can access components in useState function, as we are calling useState directly from our custom components. In react for a component, it is compulsory to return something, mostly view. So in this functional approach, we do not have a render method but we return view. After compiling this function, react makes components from this function and puts this view in the render function. When the initial render is called with component instance, it is saved in context. Whenever the setState function is called, it updates the current value and calls the render function with the context component. This is how the render method is called on every state update and we get updated value in view. For more detailed explanations refer to this blog [https://medium.com/swlh/how-does-react-hooks-re-renders-a-function-component-cc9b531ae7f0] . > onClick = () => setCounter(prev => prev + 1); In this onClick function, we have triggered the setCounter function to update the counter value. return ( <button onClick={onClick}>Click me</button> <p>{[counter}}</p> ) When we click on the button it triggers the setCounter function which will update the counter value and in return, it triggers the render method and update value in view. Graphical representationIn the above explanation, we learn about the useState hook only, using a similar approach we can understand other hooks also, but there might be other things also to consider and understand like closure to properly understand its working. References: https://medium.com/swlh/how-does-react-hooks-re-renders-a-function-component-cc9b531ae7f0 https://www.netlify.com/blog/2019/03/11/deep-dive-how-do-react-hooks-really-work/#:~:text= Deep dive%3A How do React hooks really,can go. You can try implementing... More

Get in Touch

Is your mind buzzing with ideas?
Let us know about them!

Contact Us