I don't know why i am getting this error. All i know is this is happening in the CoinTable component. Could anyone help me with this error pls? https://github.com/harpreetsingh100/Cryptowise/commit/3232f2de657537ab0c3eb3b74cef182a8284c540
I believe your error is not in the CoinTable but in your helpers component, based on what I see in the console. I think the issue is in the beforeFit function, as you try to apply the push method on an object and not an array. (axis.ticks.push({ value: length, label: labels[length] }); so check if axis.ticks is an array first
how do you guys apply the linear gradients to borders in tailwind? when I copy that code I have 2 lines of linear-gradients declarations, I have no idea how to incorporate it in my code. Thanks !
this was one of the most difficult tasks I had to implement. it's nowhere near ready but I thought it's better to submit it for review before going too deep. Thanks! https://github.com/Mioara82/crypto/pull/19
Hi @Cristian Florea @Basil Gubara, Just finished React challenge 9 - Github Battle. Let me know your opinion. Thanks! https://codesandbox.io/p/sandbox/react-challenge-9-v-03-fggyft?file=%2Fsrc%2FApp.js%3A10%2C6
I have no answer to your problem , to be honest I checked some online resources and would be an overkill, tbh, but I am no expert in reduce. what I wanted to recommend to you is to more carefully choose what variables you want to store in state. for instance you don't use the user state, just the users array to store the users. whereas for existentUser and winner, you don't need to save them in state, because they derive from state (they are computed based on existing state variables). instead of setting your existentUser to false in your timeout function, you can just display an error message. winner is derived state from users array, so no need to save it in state. hope this makes sense!
trying to display the first quote on the screen. Do I need to use forEach since it's an array? Or is my setup wrong? https://codepen.io/kleinsendja/pen/poxorBG?editors=0011
if I may suggest something, you overcomplicate your objects which will make accessing the properties very cumbersome. so instead of this: { albertE: { text: { quote: "What is the meaning of human life, or of organic life altogether? To answer this question at all implies a religion." }, quoter: " - Albert Einstein" } }, you can have just this : { quote: "What is the meaning of human life, or of organic life altogether? To answer this question at all implies a religion.", quoter: " - Albert Einstein", img:"" }, before, to access quote you would have to do : quotes[1].albertE.text.quote after: quotes[1].quote