Creating dynamic content in organisation section, discription and social media link in profile page
Description
The React useEffect hook in the provided code processes the props object, specifically the profileData property, mapping over the organizations array to create an array named orgdata. Each element in orgdata is an object with a name property derived from the organizations array, and an img property containing an array with a single image represented by the OrgUser variable. The resulting orgdata array is then passed to a function, likely named setUpOrganizations. This effect is triggered on component render and whenever there is a change in the props object, as indicated by [props] in the dependency array.
Extract the detail from props and rendered it in component.
Related Issue
Resolves issue #17
Motivation and Context
Data should be always dynamic in nature. As it should be always retreived from database.
Screenshots or GIF (In case of UI changes):
Data from database
Link attach in social media section
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Creating dynamic content in organisation section, discription and social media link in profile page
Description
The React useEffect hook in the provided code processes the props object, specifically the profileData property, mapping over the organizations array to create an array named orgdata. Each element in orgdata is an object with a name property derived from the organizations array, and an img property containing an array with a single image represented by the OrgUser variable. The resulting orgdata array is then passed to a function, likely named setUpOrganizations. This effect is triggered on component render and whenever there is a change in the props object, as indicated by [props] in the dependency array.
Extract the detail from props and rendered it in component.
Related Issue
Resolves issue #17
Motivation and Context
Data should be always dynamic in nature. As it should be always retreived from database.
Screenshots or GIF (In case of UI changes):
Data from database
Link attach in social media section
Types of changes
Checklist: