Posts

Showing posts from January, 2023

Functional Components vs Class Components

Functional components   in React Native are JavaScript functions that render a React element. They can accept a single argument which is an object containing component properties. Class Components  in React Native are  ES6 Classes   that extend  from a base class . Functional components Class Components Like normal JavaScript functions, Functional components can be defined using the arrow function or the function keyword. A class component is an class that extends from React base class. It requires a render() method. Class components initialize a state in its constructor. Functional components make use of the useState hook A functional component is just a plain JavaScript pure function. Class Component create a render function which returns a element Hooks can be easily used in functional components to make them Stateful. It requires different syntax inside a class component. ...

React Native - Overview

Image
What is React Native? React Native is a JavaScript framework  used for developing native mobile application for iOS and Android devices. It uses only JavaScript to build a mobile application. It uses native component as building blocks. It uses the React framework and offers large amount of inbuilt components and APIs. To understand the basic structure of a React Native, you need to understand some of the basic React concepts, like JSX, components, state, hooks & props . Advantages Follow are the advantages of React Native − - You can use the your existing JavaScript knowledge. - Easy to learn. - I t works for both platform Android as well iOS devices. -  The code written in React Native are compiled into native code. Limitations Following are the limitations of React Native − - To create native functionality, you will need to write platform specific code for android & ios. Some Famous React Native apps Facebook Facebook Ads Walmart Bloomberg Instagram