createRoot function
Creates a root renderer for the first element matching selector.
Implementation
FlintRoot createRoot(String selector) {
final element = web.document.querySelector(selector);
if (element == null) {
throw StateError('No element found for selector "$selector".');
}
return FlintRoot(element);
}