Skip to content
Snippets Groups Projects
Select Git revision
  • 0cf799f5b7d8cbc37910c794239744d3c27dcbcf
  • main default protected
  • v5.2
  • v5.1
  • v7.1
  • v7
  • v6.2
  • v6.1
  • v6
  • v5.9
  • v5.8
  • v5.7
  • v5.6
  • v5.5
  • v5
  • v5.3
  • v4.6
  • v4.6-problem
  • v4.5
  • v4
  • v3.2
  • v3.1
22 results

second.jsx

Blame
  • Forked from javascript / intro-react
    37 commits behind the upstream repository.
    second.jsx 432 B
    
    // import some other component
    import First from './first.jsx';
    
    /* define a stateless React component 
     * It uses another defined component, here First.
     */
    const Second =
       () =>
          <div>
             <h3>Second React component that uses another React component</h3>
             <p>below comes a <code>First</code> component : </p>
             <First />                                            
          </div>
    
    export default Second;