开发者

I want to create a route in Remix Run, without URL nesting or Layout Nesting

How do you create a link like xx.com/blog and have it load from a different file without keeping it in the ro开发者_如何学Goutes folder

if you have unwanted layout defined in app/root.tsx and app/routes/index.tsx

I tried the method of using dot notation

  • such as root.blog.tsx and app.blog.tsx and ```app.index.tsx

where I kept the file blog.tsx or index.tsx in routes/blog/

I tried creating a special URL from remix.config.tsx but it didn't remove the layout

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜