I am using ReactJs and Recoil. When exporting an atom and importing it into App.js, I get a TypeError: Object (...) is not a function, what is the problem?
atoms.js:
import atom from 'recoil';
export const textState = atom({
key: 'textState', // unique ID (with respect to other atoms/selectors)
default: '', // default value (aka initial value)
});
App.js:
import {
useRecoilState, atom
} from 'recoil';
import { textState } from "./atoms"