You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The given code inside the string should be a function.
57
60
58
-
- The given code is executed in the global scope, so imported objects from `react` package including `useState`, `useEffect`, ... are not accessible inside it and you should get them from `React` global variable :
61
+
- The code inside the string is executed in the global scope, so imported objects from `react` package including `useState`, `useEffect`, ... are not accessible inside it and you should get them from `React` global variable :
59
62
60
63
```js
61
64
import {useState} from'react';
@@ -92,6 +95,12 @@ function App() {
92
95
}
93
96
```
94
97
98
+
## Caveats
99
+
100
+
This plugin does not use `eval` function, however, suffers from security and might expose you to XSS attacks
101
+
102
+
To prevent XSS attacks, You should sanitize user input before storing it.
0 commit comments