import React from 'react'

import Landing from './Landing'
import Dashboard from './Dashboard'

const Home = () => {
  const login = true
  return (
    <div>
      {login ? <Dashboard /> : <Landing />}
    </div>
  )
}

export default Home

import React from 'react'

import Landing from './Landing'
import Dashboard from './Dashboard'

const Home = () => {
  const login = false
  return (
    <div>
      {login ? <Dashboard /> : <Landing />}
    </div>
  )
}

export default Home

set default to landing