Trifke00
Trifke00
KPCKevin Powell - Community
Created by luca on 10/15/2024 in #front-end
How to Extend Background Color Across the Entire Row in My Opening Hours Table?
: didnt saw OP wanted to remove gap between cols.... my bad
6 replies
KPCKevin Powell - Community
Created by Avinash on 5/21/2023 in #front-end
Anyone know how to fix this issue in react?
8 replies
KPCKevin Powell - Community
Created by Lord Of Insanity on 3/7/2023 in #front-end
Keep getting error "Uncaught TypeError: Cannot read properties of null (reading 'classList')"
Yup, I made a mistake. Doing some React project and I just did not think, you're right, will edit
12 replies
KPCKevin Powell - Community
Created by Leke on 3/6/2023 in #front-end
React Query state management
React Query is like any other State management, just specialized in, well - querying ( get, post, put, delete ) For any other type of State management, you can try out Redux or Recoil
8 replies
KPCKevin Powell - Community
Created by Lord Of Insanity on 3/7/2023 in #front-end
Keep getting error "Uncaught TypeError: Cannot read properties of null (reading 'classList')"
<button onClick='openModal'>Click</button>

<script>
//First way
const openModal = () => {
alert('click!')
logic...
}

//second way
function openModal(){
logic...
}
</script>
<button onClick='openModal'>Click</button>

<script>
//First way
const openModal = () => {
alert('click!')
logic...
}

//second way
function openModal(){
logic...
}
</script>
~You called function when button was rendered, don't type '()', just ~you can make reference to that Fn with event. Better way of doing it would be with .addEventListener
12 replies