I oftentimes find that I have forgotten the object rest properties syntax.
The following is a collection of examples to which I expect to be able to refer in order to remind myself of the rules of the syntax.
// connect() is a function that injects Redux-related props into your component. | |
// You can inject data and callbacks that change that data by dispatching actions. | |
function connect(mapStateToProps, mapDispatchToProps) { | |
// It lets us inject component as the last step so people can use it as a decorator. | |
// Generally you don't need to worry about it. | |
return function (WrappedComponent) { | |
// It returns a component | |
return class extends React.Component { | |
render() { | |
return ( |
Demo of Issue in react-calendar-heatmap
Issue URL: kevinsqi/react-calendar-heatmap#59
When I tried to use the @react-pdf/renderer
package (version 3.0.1
) with a React 18 app, two problems arose. In this article, I'll describe those problems and tell you how I solved them.
Update: Here's a video demonstration of the problems and solution described in this article: https://youtu.be/YZP5r7Uy_bU
Here are my notes about deploying Scribble.rs to Digital Ocean.
Scribble.rs is an open-source, ad-free alternative to skribbl.io.