Change doneRendering to onRender and add snippet to docs.