Skip to content

Instantly share code, notes, and snippets.

@giioohbernini
Created July 28, 2020 15:16
Show Gist options
  • Select an option

  • Save giioohbernini/07f26a9c06d6e159eb17a625e4041776 to your computer and use it in GitHub Desktop.

Select an option

Save giioohbernini/07f26a9c06d6e159eb17a625e4041776 to your computer and use it in GitHub Desktop.
Web to native #3
import React from 'react'
import isApp from 'utils/isApp'
const welcomeType = isApp
? 'Your app about page'
: 'Your web about page'
const About = () => {
return (
<div>
<h2>About - {welcomeType}</h2>
</div>
)
}
export default About
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment