Skip to content

Tag: reactjs

React Module parse failed: Unexpected token (1:48)

Can someone help me? I just create react app then I start it immediately. Then I got an error something like this. I don’t know much about webpack. CMD I just type npx create-react-app ./ in the directory then npm start then this error happened. I have tried to make 3 react app and same thing happened a…

Data not saved with redux react for android

I probably missunderstood how does redux works but my datas are not saved into the store and i quit et re-open the app. Everything works perfectly when i keep my app open (I can add sessions, exercices…) and everything is saved but when i close it there’s no data. Do i’ve to write some code …

How do you use React context inside App.js file?

I am building a multi-language app. I am using react-intl. So far, so good. I made a state of the language with context api, so I can switch it easily. However I get this error when I try to use the state in App.js: TypeError: Object is not iterable (cannot read property Symbol(Symbol.iterator)). Here is my c…

How to avoid input value reset in Reactjs?

I am referring to this tutorial for simple react autocomplete https://www.digitalocean.com/community/tutorials/react-react-autocomplete But I have a slightly different requirement. Instead of typing something on the input field, I want all the suggestions to come up on clicking the input field. I am basically…