fixed jsx highlighting

This commit is contained in:
arthurfiorette 2022-01-19 09:27:19 -03:00
parent cb5938401b
commit 64c0f405a2
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555
3 changed files with 1 additions and 7 deletions

View File

@ -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"

View File

@ -23,8 +23,6 @@
const tempCodePlaceholder = document.createElement('pre');
tempCodePlaceholder.textContent = source;
console.log(this.getAttributeNames());
window.RunKit.createNotebook({
element: wrapper,
source,

View File

@ -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);