# 不同 JS 框架中的吉他和弦搜索

这些网站展示了如何在不同的 JavaScript 框架中使用 Typesense,数据集包含 552 个吉他和弦的 2141 种指法形状。

# NuxtJS

在线演示 (opens new window) | 源代码 (opens new window)

# Next.js app router

在线演示 (opens new window) | 源代码 (opens new window)

  • 这里 (opens new window)展示了如何在 Next.js app router 中设置 react-instantsearch。如果你想在 page.tsx 中使用 Server Component,请将搜索组件移到单独的文件中,并确保在文件顶部包含 'use client' 指令。
  • 这里 (opens new window)展示了如何使用自定义命中结果模板。

# Angular v15 版本

在线演示 (opens new window) | 源代码 (opens new window)

# 原生 JavaScript 版本

在线演示 (opens new window) | 源代码 (opens new window)

# Astro 版本

在线演示 (opens new window) | 源代码 (opens new window)

  • 这里 (opens new window)展示了如何在 Astro 中使用 instantsearch.js。注意需要将其包裹在 <script> 标签中。

# SolidJS

在线演示 (opens new window) | 源代码 (opens new window)

  • 这里 (opens new window)展示了如何在 SolidJS 中使用 instantsearch.js。请确保将其包裹在 onMountcreateEffect 函数中。

# Remix

在线演示 (opens new window) | 源代码 (opens new window)

# SvelteKit

在线演示 (opens new window) | 源代码 (opens new window)

  • 这里 (opens new window)展示了如何在 SvelteKit 中使用 instantsearch.js。请确保将其包裹在 onMount 函数中。

# Qwik

在线演示 (opens new window) | 源代码 (opens new window)

  • 这里 (opens new window)展示了如何在 Qwik 中使用 instantsearch.js。注意要将其包裹在 useVisibleTask$ 中。

# React Native

源代码 (opens new window)