Are ReactJS and React Native the same?

Last updated

This post is also available in different formats so you can read on the go or share it around!

React is a JavaScript library for building user interfaces. It's often used in the context of the web, it's original intention but React Native allows you to write mobile interfaces for iOS and Android too1.

React Native is built on React but unlike in the web, you're not relying ReactDOM or the DOM at all. Instead of writing elements like <div> and <a>, in React Native you need to use the primitives of the OS. This could be components like <View> or <FlatList>. This allows you to write React code like you would on the web but target mobile devices. The same concepts you're familiar with, apply here too.

Footnotes


Seth Corker

Currently a Senior Product Engineer at zeroheight. Actively designing and building the agentic systems that respond to tools like Figma to update your design system documentation automatically as well as a flexible platform to manage agents.