For an interview, I was asked ,"where is data stored in React.js?" I tried saying state, props, and React doesn't store data. I'm not sure what answer he was looking for. What's the best way to answer this question? Note, he's primarily a Java programmer.
Without his mindset it is kinda of hard to say...
I think this is a poor question to ask an interviewee without any real context. Java programmer or not, it sounds like he doesn't entirely understand what he is talking about. You might have dodged a bullet not working for that company.
I would have said React can use a combination of sessionStorage, localStorage, state, store, and this, to hold data, however storing data would be whatever database you setup to use it with.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With