codedamn

Adding answers to questions

Created by Codedamn about a year ago

0

No description provided

3 Comments

    0

    import React, { useState } from 'react'

    const Question = ({title,id}) => {

    // update the UI here
    return (
    	<>
    	<h2>{title}</h2>
    	<p>{id}</p>
    	
    	 
    	</>
    )
    

    }

    export default Question import React, { useState } from 'react' import data from './data' import SingleQuestion from './Question'

    function App() { return ( <main> <div className="container"> <h3>FAQ</h3> <section className="info"> {data.map((question) => { return ( <SingleQuestion key={question.id} title={question.title} id={question.info}

    						/>
    					)
    				})}
    			</section>
    		</div>
    	</main>
    )
    

    }

    export default App why me two first two test cases is not passed?

    @sumaa

    Shubham Kumar

    @sumaa

    0

    import React, { useState } from 'react'

    const Question = ({title,id}) => {

    // update the UI here
    return (
    	<>
    	<h2>{title}</h2>
    	<p>{id}</p>
    	
    	 
    	</>
    )
    

    }

    export default Question import React, { useState } from 'react' import data from './data' import SingleQuestion from './Question'

    function App() { return ( <main> <div className="container"> <h3>FAQ</h3> <section className="info"> {data.map((question) => { return ( <SingleQuestion key={question.id} title={question.title} id={question.info}

    						/>
    					)
    				})}
    			</section>
    		</div>
    	</main>
    )
    

    }

    export default App why me two first two test cases is not passed?

    @sumaa

    Shubham Kumar

    @sumaa

    0

    Bro as you mentioned below code the last test case does not pass what should i do

    @karthik6791

    Karthik

    @karthik6791

Your comment