//declaring arrow function
hello = () => {
return "hello world";
}
import React from 'react'
const buttons = () => {
return (
<div>
</div>
)
}
export default buttons
npm install --save-dev @babel/plugin-proposal-class-properties
run this in terminal to run arrow functions .
ig-kiritocode1
const App = () => {
return (
<div>
<h1>List of Courses</h1>
<hr />
<CoursesList courses={courses} />
</div>
);
}