This project uses `react-tour-guild` to create guided tours in your React application.
npm install react-tour-guildThis project uses react-tour-guild to create guided tours in your React application.
Before using react-tour-guild, you need to install tailwindcss. You can install it using npm by following the Tailwind CSS installation guide.
To install react-tour-guild, you can use npm:
``bash`
npm install react-tour-guild
Here is a basic example of how to use react-tour-guild in your project:
`typescript
// main.ts
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { TourProvider } from 'react-tour-guild';
import App from './App';
const EXAMPLE_STEPS = [{
id: 'step-1',
title: 'Step 1',
description: 'This is the first step',
stepIndex: 1,
}, {
id: 'step-2',
title: 'Step 2',
description: 'This is the second step',
stepIndex: 2,
}]
createRoot(document.getElementById('root')!).render(
);
`
Here's how to use react-tour-guild with a simple React app:
`typescript
// App.tsx
import { useState } from 'react';
import reactLogo from './assets/react.svg';
import viteLogo from '/vite.svg';
function App() {
const [count, setCount] = useState(0);
return (
export default App;
``
For more detailed information, please refer to the react-tour-guild documentation.
This project is licensed under the MIT License.