Skip to content

Commit 71ed681

Browse files
authored
react functional component
1 parent 57cfb36 commit 71ed681

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Fuctional Component
3+
description: Functional component for React JS with props.
4+
author: gihanrangana
5+
tags: typescript,fuctional-component,react-props,reactjs
6+
---
7+
8+
```tsx
9+
import React from 'react';
10+
11+
interface ComponentNameProps {
12+
// Define specific props here
13+
}
14+
15+
const ComponentName: React.FC<ComponentNameProps> = (props) => {
16+
return (
17+
<div>
18+
{/* Add component content here */}
19+
</div>
20+
);
21+
};
22+
23+
export default ComponentName;
24+
```

0 commit comments

Comments
 (0)