Some thoughts about reusable component design in react
Consider passing in some properties as children, instead of props . This will make the code looks cleaner: The consumer doesn’t have to build a big “props” object to pass in You will divide a single component into several ones. Each one will a take small props object, which is highly inherent For example, instead …
Some thoughts about reusable component design in react Read More »