mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
fixed jsx highlighting
This commit is contained in:
parent
cb5938401b
commit
64c0f405a2
@ -120,10 +120,6 @@
|
||||
crossorigin
|
||||
src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"
|
||||
></script>
|
||||
<script
|
||||
crossorigin
|
||||
src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-tsx.min.js"
|
||||
></script>
|
||||
<script
|
||||
crossorigin
|
||||
src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-jsx.min.js"
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
const tempCodePlaceholder = document.createElement('pre');
|
||||
tempCodePlaceholder.textContent = source;
|
||||
|
||||
console.log(this.getAttributeNames());
|
||||
|
||||
window.RunKit.createNotebook({
|
||||
element: wrapper,
|
||||
source,
|
||||
|
||||
@ -125,7 +125,7 @@ code to handle cache invalidation, strategies and etc.
|
||||
With this library, you can just call any axios method without worrying about requesting
|
||||
thousands of times for every component draw. Simple as that!
|
||||
|
||||
```tsx
|
||||
```jsx
|
||||
function Component() {
|
||||
// React component state (but can be from any other framework, library and etc)
|
||||
const [data, setData] = useState(null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user