mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
Writing the component docs example inline makes it easier to quickly through an example together but means we lose any type checking on the examples. This CL migrates one example to TS and updates the ES Modules Import lint rule to allow component docs files to import the test helpers - which we do to allow them to emulate a full DevTools environment if required. This change caught some invalid config in the component doc example so I think if we can make this migration across all the component doc examples it will help ensure our examples are up to date and valid. Bug: 1144106 Change-Id: I32cf0e09bfe158ae5ba9b57dbc535e14a9985a5f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2613206 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
31 lines
639 B
HTML
31 lines
639 B
HTML
<!--
|
|
Copyright 2020 The Chromium Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
found in the LICENSE file.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Basic Data grid example</title>
|
|
<style>
|
|
#container {
|
|
width: 80%;
|
|
border: 1px solid black;
|
|
padding: 20px;
|
|
height: 300px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="container">
|
|
</div>
|
|
|
|
<ul id="events"></ul>
|
|
<script type="module" src="./basic.js"></script>
|
|
</body>
|
|
</html>
|