SUSI exhibits several skills which are managed by the SUSI Skill CMS, it essentially is a client which allows users to create/update skills conveniently since for each skill it is important to have the functionality of rating system so developers can get to know which skills are performing better than the rest and consequently improve them, thus a skill rating system which allows the users to give positive or negative feedback for each skill is implemented on the server.
Fetching skill_rating from the server
- Fetch skill data for which ratings are to be displayed through ajax calls
API Endpoint –
- Parse the received metadata object to get positive and negative ratings for that skill
- Set the react state of the component to store positive and negative rating.
- Use react-icons to fetch like and dislike icon components from font-awesome.
- Import the corresponding icons in the SkillPage component
- Display the rating count along with their icons
Sample API response
- react-icons npm package
- Blog on icons as react components – https://email@example.com/icons-as-react-components-de3e33cb8792