Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

components

  1. P

    Cannot read properties of 'undefined': 'props'

    I am trying to write a very simple React standalone function that will take a URL as a parameter and return the fetched HTML as a result to the parent component. Here is my code: import { useEffect, useState } from 'react'; const GetData = ({ props }) => { const [html, setHtml] =...
  2. tomliv

    Reusable component structure

    We're all about components these days right? Here's a situation I struggle with frequently. You are making a reusable card component - theoretically built as reusable and should be able to be placed anywhere you need a card-type layout. There is an image on left, and copy on right. Copy has a...
Back
Top Bottom