React Stateless Functional Component

    0

    0

    Khalid Khan

    React Native companion for Typescript

    The above code defines an interface named AppProps and defines a variable named App that is of type React.SFC<AppProps>. The code inside the curly braces () is the actual code that is executed when the App variable is used. This code simply returns, which means that the code inside the curly braces does not affect the rest of the code inside the function.

    Library: react-native

    Shortcut: reactnative.functionalcomp.stateless

    import * as React from 'react';
    
    interface AppProps {
    }
    
    const App: React.SFC<AppProps> = (props) => {
      return ;
    };
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.