mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-11-02 11:19:15 +08:00
This introduces the components server that we will use to view components locally. Design doc: https://docs.google.com/document/d/1P6qtACf4aryfT9OSHxNFI3okMKt9oUrtzOKCws5bOec/edit?pli=1 Change-Id: I6cd7588f045c3cd46e57f1f44441ffa95f0b70bb Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2199081 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
18 lines
483 B
HTML
18 lines
483 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Basic Component example</title>
|
|
</head>
|
|
<body>
|
|
|
|
<script type="module">
|
|
// if we needed to we can import anything from DevTools frontend here
|
|
const myComponent = document.createElement('div')
|
|
myComponent.innerHTML = '<marquee>hello world</marquee>';
|
|
document.body.appendChild(myComponent);
|
|
</script>
|
|
</body>
|
|
</html>
|