react_acordion2.js

Home   »   react_acordion2.js

import React from 'react';

const App = () => {
  const accordionData = {
 title: 'Section 1',
 content: `Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quis sapiente
 laborum cupiditate possimus labore, hic temporibus velit dicta earum
 suscipit commodi eum enim atque at? Et perspiciatis dolore iure
 voluptatem.`
  };

  const { title, content } = accordionData;

  return (
 
 

React Accordion Demo

{title}
+
{content}
); }; export default App;

Leave a Reply

Your email address will not be published.