Skip to content

react-v1

This is compatible package which allow you to use @reatom/core-v1 with react. All docs is here.

Setup batching for old React

#

For React 16 and 17 you need to setup batching by yourself in the root fo your app

For react-dom

import { unstable_batchedUpdates } from 'react-dom'
import { setupBatch } from '@reatom/react-v1'
setupBatch(unstable_batchedUpdates)``

For react-native

import { unstable_batchedUpdates } from 'react-native'
import { setupBatch } from '@reatom/react-v1'
setupBatch(unstable_batchedUpdates)``