목록2023/01/11 (4)
Silver Library (Archived)
https://medium.com/swlh/how-to-implement-cursor-pagination-like-a-pro-513140b65f32 How to Implement Cursor Pagination Like a Pro So you’ve decided to implement cursor pagination in your website. Well, you’ve come to the right place! (If you’re not entirely convinced… medium.com
CSS, this is only fun when it goes as I planned. Once I stuck with it, I find a solution anyway but time. This took from two days to one day now. So, question is; is it sustainable to learn it? The answer is, I guess so. If you have been sick but needed styled-components, perhaps this can be favourable I guess. //css .custom-heading { background-color: #007bff; color: #fff; font-size: 2rem; } //..
What is this? useEffect is a hook in React that allows us to synchronise a component with an external system. This can be used to handle a variety of tasks, like: 1. setting up a subscription 2. manually changing the DOM 3. fetching data First of all, this is the typical and basic useEffect. import { useEffect } from 'react'; function MyComponent() { useEffect(() => { // your code here }, [depen..
I already used number of features those provided by react.js, but I just noticed one thing. Have I followed OOP by the way? What about design pattern? Above all, how can I apply such OOP norm to any of them? So, let me clarify. OOP approach with classes are: class MyComponent extends React.Component { constructor(props) { super(props); this.state = { message: 'Hello, World!' }; } handleClick() {..