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

A Fullstack Software Engineer working with React and Django. My main focus is JavaScript specialising in frontend UI with React. I like to explore different frameworks and technologies in my spare time. Learning languages (programming and real life) is a blast.