Skip to content

Commit 77ad2d8

Browse files
committed
Merge branch 'master' into update-rendrjs
2 parents 1133d79 + ffb4366 commit 77ad2d8

File tree

140 files changed

+31390
-3032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+31390
-3032
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Some frameworks like React, Vue.js or Angular, allow you to create a 1:1 relatio
5858

5959
The other mode is “non-keyed” and this is what e.g. vue.js uses by default for lists. In this mode, a change to the data items can modify DOM nodes that were associated with other data before. This can be more performant, since costly DOM operations can be avoided (e.g. first removing old nodes and then adding new nodes) and the existing DOM nodes are updated to display the new data. For React and Angular, using the item index as the key uses “non-keyed” mode for those frameworks.
6060

61-
Depending on your requirements, the “non-keyed” mode can be a performance gain or can cause severe problems, so one must carefully choose the mode and check that the framework supports that mode.
61+
Depending on your requirements, the “non-keyed” mode can be a performance gain or can cause severe problems, so one must carefully choose the mode and check that the framework supports that mode.
6262

6363
Read more here: [https://www.stefankrause.net/wp/?p=342](https://www.stefankrause.net/wp/?p=342)
6464

eslint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import js from "@eslint/js";
33
import ts from "@typescript-eslint/eslint-plugin";
44
import tsParser from "@typescript-eslint/parser";
55
import react from "eslint-plugin-react";
6+
import reactRefresh from "eslint-plugin-react-refresh";
67
import reactHooks from "eslint-plugin-react-hooks";
78
import unicorn from "eslint-plugin-unicorn";
89

@@ -84,11 +85,16 @@ export default [
8485
files: ["webdriver-ts-results/**/*.tsx"],
8586
plugins: {
8687
react,
88+
"react-refresh": reactRefresh,
8789
"react-hooks": reactHooks,
8890
},
8991
rules: {
9092
...react.configs.recommended.rules,
93+
...react.configs["jsx-runtime"].rules,
9194
...reactHooks.configs.recommended.rules,
95+
96+
"react/jsx-no-useless-fragment": "warn",
97+
"react-refresh/only-export-components": "warn",
9298
},
9399
settings: { react: { version: "detect" } },
94100
languageOptions: { globals: { ...globals.browser } },
@@ -98,7 +104,7 @@ export default [
98104
languageOptions: { globals: { ...globals.browser, ...globals.node } },
99105
rules: {
100106
"@typescript-eslint/no-loss-of-precision": "off",
101-
"no-debugger":"off"
107+
"no-debugger": "off",
102108
},
103109
},
104110
];
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<title>DLight-keyed</title>
6+
<link href="/css/currentStyle.css" rel="stylesheet"/>
7+
</head>
8+
<body>
9+
<div id='main'></div>
10+
<script src='dist/main.js'></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)