Rasengan Logo
Rasengan Logo
  • Docs
  • Blog
  • Showcase
Using stable versionv1.2.1
Documentation
Packages
Templates
Rasengan UI Kit
Using stable versionv1.2.1
Documentation
Packages
Templates
Rasengan UI Kit

API REFERENCE

Component

The Component React component is the main component provided by Rasengan.js to setting up all the routing system based on the AppRouter that it receives as a prop.

This component is used inside the main.tsx file (the entry point of the application) to set up the routing system.

Usage

TypeScript
JavaScript
main.tsx
import { type AppProps } from "rasengan"; export default function App({ Component, children }: AppProps) { return <Component>{children}</Component>; }

The Component component receives the router prop, which is the AppRouter class that contains all the routes of the application. It will be responsible for setting up the routing system based on the routes defined in the AppRouter class.

Props

The Component component accepts two props:

  • router: The AppRouter class that contains all the routes of the application.
  • children: The children of the Component component, which represents all the routing system of the application.
Outlet Component
Template

On This Page

  • Usage
  • Props

Discover Plus Ultra ✨

A stunning and well crafted Portfolio website to showcase your work in a nice way.

Rasengan Logo
Rasengan Logo

Resources

  • Docs
  • Packages
  • Blog
  • Showcase
  • Support us

Products

  • Rasengan UI
  • Rasengan Hub
  • Chidori
  • Nindo
  • Chunin

Community

  • Github
  • X (Twitter)

Subscribe to the Newsletter

Stay informed to the news about rasengan.js including new releases, events, etc...

© 2024-2026 Rasengan Labs, All rights reserved.