Skip to content

Tag: react-native

Defining hooks inside an array

I would like to create a bunch of filters to pause or play my Video. My implementation is something like as shown below: I know defining hooks inside an if condition is not correct. But how about defining them as above? Could it be done in a better way? Answer In order for React to correctly preserve the stat…

Why are showing blank page in reactjs?

I am using class and constructor in react-js but this program does not error is thrown in console. show a message only blank. what is wrong? Answer You need to pass it as <Component />. And Still doesn’t work then add your index.html, there might be the issue then. PS: If you want to render only e…