Skip to content

Commit efb4f4c

Browse files
authored
Chore: Library update, React, Node and Cypress (#826)
* chore: react and node update * chore: react and node update * chore: cypress updated * fix: minor edit and unused file removed
1 parent 0bdd1e7 commit efb4f4c

File tree

7 files changed

+589
-505
lines changed

7 files changed

+589
-505
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"editor.defaultFormatter": "esbenp.prettier-vscode"
3838
},
3939
"editor.codeActionsOnSave": {
40-
"source.fixAll.eslint": true
40+
"source.fixAll.eslint": "explicit"
4141
}
4242
}

demo/src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import { createRoot } from 'react-dom/client'
12
import 'core-js/stable'
23
import 'regenerator-runtime/runtime'
34

4-
import React from 'react'
5-
import { render } from 'react-dom'
65
import { StylesAsDataAttributes } from 'substyle-glamor'
76

87
import Demo from './Demo'
98

10-
render(
9+
const root = createRoot(document.querySelector('#demo')!)
10+
11+
root.render(
1112
<StylesAsDataAttributes>
1213
<Demo />
13-
</StylesAsDataAttributes>,
14-
document.querySelector('#demo')
14+
</StylesAsDataAttributes>
1515
)

0 commit comments

Comments
 (0)