Giter Site home page Giter Site logo

laurencerlewis / learning-react_editable-description-list Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 214 KB

Created with CodeSandbox

Home Page: https://codesandbox.io/s/github/LaurenceRLewis/LEARNING-REACT_Editable-Description-List

HTML 5.57% JavaScript 43.86% CSS 50.56%

learning-react_editable-description-list's Introduction

LEARNING-REACT_Editable-Description-List

Steps used to build the component

This is my attempt at learning REACT. There are many bugs in these components and they MUST not be copied for use in production.

Working example on Netify:

  1. Created a new React component named DescriptionList.
  2. Imported React and the useState hook.
  3. Defined the initial state for the component, including a default name, an editMode state and a status state.
  4. Returned JSX that renders a description list with a
  5. Description Term (DT) of "Name" and a Description
  6. Definition (DD) that displays the name state.
  7. If the editMode state is true, it renders a form with an input for the name and a save button. If the editMode state is false, it renders the DD with the name state and an "Edit name" button.
  8. Created a CSS file and added styles for the description
  9. Imported the CSS file into the component file.

learning-react_editable-description-list's People

Contributors

laurencerlewis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.