Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
Note: All of the CSS is available in the src/index.css file here.
Strapi Backend GitHub Repository
# SocialCards/SocialCards.jsx import { Button, Card, Col, Image, message, Row, Space, Spin, Typography, } from "antd"; import React, { useEffect, useState } from "react"; import { AiFillTwitterCircle, AiFillLinkedin, AiFillGithub, } from "react-icons/ai"; import { CgWebsite } from "react-icons/cg"; import { SiGmail } from "react-icons/si"; import { API, AVATAR_API } from "../../constant"; const SocialCards = () => { const [profiles, setProfiles] = useState([]); const [isLoading, setIsLoading] = useState(false); const fetchProfiles = async () => { setIsLoading(true); try { const response = await fetch(`${API}/users`); const data = await response.json(); setProfiles(data ?? []); } catch (error) { console.error(error); message.error("Error while fetching profiles!"); } finally { setIsLoading(false); } }; useEffect(() => { fetchProfiles(); }, []); if (isLoading) { return ; } return ( {profiles.map((profile, index) => ( {profile.username} {profile.about} {profile.twitter_username && ( )} {profile.linkedin_username && ( )} {profile.github_username && ( )} {profile.website_url && ( )} {profile.email && ( )} ))} ); }; export default SocialCards;
React has large community support and it's used by giants like Facebook, Tesla, etc. React provides some outstanding features like JSX (Javascript syntactic extension), Virtual DOM (Document Object Model), etc. Click here to learn more.
# SocialCards/SocialCards.jsx import { Button, Card, Col, Image, message, Row, Space, Spin, Typography, } from "antd"; import React, { useEffect, useState } from "react"; import { AiFillTwitterCircle, AiFillLinkedin, AiFillGithub, } from "react-icons/ai"; import { CgWebsite } from "react-icons/cg"; import { SiGmail } from "react-icons/si"; import { API, AVATAR_API } from "../../constant"; const SocialCards = () => { const [profiles, setProfiles] = useState([]); const [isLoading, setIsLoading] = useState(false); const fetchProfiles = async () => { setIsLoading(true); try { const response = await fetch(`${API}/users`); const data = await response.json(); setProfiles(data ?? []); } catch (error) { console.error(error); message.error("Error while fetching profiles!"); } finally { setIsLoading(false); } }; useEffect(() => { fetchProfiles(); }, []); if (isLoading) { return ; } return ( {profiles.map((profile, index) => ( {profile.username} {profile.about} {profile.twitter_username && ( )} {profile.linkedin_username && ( )} {profile.github_username && ( )} {profile.website_url && ( )} {profile.email && ( )} ))} ); }; export default SocialCards;
A code editor like VSCode