Currently this library only print the rendering error message with console.log. This PR add a option config.errorHandler to let developers do something on error, such as show stylized error message on the page.
The current behavior is preserved via the default value of config.errorHandler.
Currently this library only print the rendering error message with
console.log
. This PR add a optionconfig.errorHandler
to let developers do something on error, such as show stylized error message on the page.The current behavior is preserved via the default value of
config.errorHandler
.