reactFunctionalComponent

    0

    5

    lucycodes42

    JavaScript snippets for React

    In the above code, the ${1:filename} function takes one parameter, which is the name of the file to be rendered. The function returns a div element with the text "first".

    Library: react

    Shortcut: rfc

    import React from 'react';
    
    export default function ${1:filename}() {
      return (
        <div>first</div>
      )
    }
    
    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.