From 38180b44bb1ca874ed3e91f4443efe5b1d5eae65 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 16 Oct 2020 20:01:11 +0530 Subject: [PATCH] index.mdx - Separate redirect logic into jsx --- docs/index.jsx | 6 ++++++ docs/index.mdx | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 docs/index.jsx diff --git a/docs/index.jsx b/docs/index.jsx new file mode 100644 index 0000000..66617d5 --- /dev/null +++ b/docs/index.jsx @@ -0,0 +1,6 @@ +import React from 'react'; +import {Redirect} from '@docusaurus/router'; + +export default function Home() { + return ; +} diff --git a/docs/index.mdx b/docs/index.mdx index e477858..9aba68e 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -1,12 +1,10 @@ --- title: +hide_title: true slug: / --- -import {Redirect} from '@docusaurus/router'; - -function Home() { - return ; -} +import Home from './index'; +# Redirecting... \ No newline at end of file