Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.1 KB

react-native.mdx

File metadata and controls

20 lines (13 loc) · 1.1 KB
title description nav
React Native
Using Jotai in React Native
3.05

Jotai atoms can be used in React Native applications with absolutely no changes. Our goal is to always be 100% compatible with React-Native.

Persistence

When it comes to persistence feature, the implementation specific to React Native are detailed in the atomWithStorage function in the utils bundle.

Performance

There is no known specific overhead when using Jotai in your app. Some libraries will add some/lots of additional properties and methods to the stored data for the practical usage, but Jotai behaves differently and you're always manipulating simple stuff that could barely be shortcuted.

Jotai atomical architecture will encourage you to split logic and data, providing a top-most experience to control every one of your render (or commits, to be precise) and therefore reach the best performances.

And always remember that renders have to be fast, split calculation logic to async actions.