Simplifying life with React render callbacks
Adam Rackis

Hi Adam, great article, I like that you covered the pros/cons of several methods. Can I ask how you approach testing around render callbacks? The thing that has stopped me from using them in the past is the awkwardness involved in shallow rendering unit tests. Because the contents of the render callback are not directly rendered by the component in which they are defined, it makes shallow rendering in tests more complicated.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.