BehaivorSubject return null

I have this problem, I need the behaivorSubject not to return the value when it is null, since the result is grabbed by a component made by third parties and if this is null it throws me an error. It should return the same only when I get the response from the server, I leave… Read More BehaivorSubject return null

react native hooks can only be called inside body of a function component

i am new to react i need help with the usestate need it to change style to display none saving the text in state then show use it in the inline css the code is below import React, { useState, Component, useEffect } from ‘react’; import { StyleSheet, Text, View, Alert, Image} from "react-native"; import… Read More react native hooks can only be called inside body of a function component

Using the Context API as a way of mimicking useSelector and useDispatch with redux v5

I’m working on a React project where I’m constrained to using React Redux v5, which doesn’t include useDispatch and useSelector. Nonetheless I really would like to have these hooks (or something like them) available in my app. Therefore, I’ve created a wrapper component at the top level of the app which I connect using redux’s… Read More Using the Context API as a way of mimicking useSelector and useDispatch with redux v5