Zontroy AI Offline Single File
zsif


File Naming Format
File Naming Example
Code Example
Output Example
Generate in Zontroy IDE







Last updated









Last updated
[file_name].[file_extension].zsifMyCodeFile.java.zsif// PrivateRoutes.tsx.zsif
import {Suspense} from 'react'
import {Route} from 'react-router-dom'
zg-for(((zg-item:::[[[zg-entities]]]))){{{
const [[[zg-item...zg-name]]]Page = lazy(() => import('../modules/zg-lower(((zg-item...zg-name)))/zg-singularize(((zg-item...zg-name)))Page'))
}}}
zg-for(((zg-item:::[[[zg-entities]]]))){{{
<Route
path='crafted/zg-pluralize(((zg-lower(((zg-item...zg-name))))))/zg-lower(((zg-item...zg-name)))/*'
element={
<SuspensedView>
<[[[zg-item...zg-name]]]Page />
</SuspensedView>
}
/>
}}}// PrivateRoutes.tsx.zsif
import {Suspense} from 'react'
import {Route} from 'react-router-dom'
const cityPage = lazy(() => import('../modules/city/cityPage'))
const countryPage = lazy(() => import('../modules/country/countryPage'))
const customerPage = lazy(() => import('../modules/customer/customerPage'))
<Route
path='crafted/cities/city/*'
element={
<SuspensedView>
<cityPage />
</SuspensedView>
}
/>
<Route
path='crafted/countries/country/*'
element={
<SuspensedView>
<countryPage />
</SuspensedView>
}
/>
<Route
path='crafted/customers/customer/*'
element={
<SuspensedView>
<customerPage />
</SuspensedView>
}
/>