import React from 'react'; const CodeSuggestions = () => { const suggestions = [ 'function add(a, b) { return a + b; }', 'const multiply = (a, b) => a * b;', 'class Person { constructor(name) { this.name = name; } }', 'async function fetchData() { const response = await fetch(url); return response.json(); }', 'const array = [1, 2, 3].map(x => x * 2);', 'const filtered = array.filter(x => x > 2);' ]; return (

Code Snippets

{suggestions.map((snippet, index) => (
{snippet}
))}
); }; export default CodeSuggestions;