Giter Site home page Giter Site logo

laurencerlewis / learning-react_combining-components-basic Goto Github PK

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

Created with CodeSandbox

Home Page: https://codesandbox.io/s/github/LaurenceRLewis/LEARNING-REACT_Combining-Components-basic

HTML 15.38% JavaScript 73.78% CSS 10.84%

learning-react_combining-components-basic's Introduction

LEARNING-REACT_Combining-Components-basic

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:

step-by-step summary of how the two description lists were combined:

  1. Create the individual description list components: Name and Email. These components should each include the dt and dd elements for their respective description items.

  2. Strip the dl element from each of the individual components, so that each component only includes the dt and dd elements.

  3. Create the main App component, which will be responsible for combining the two description lists.

  4. Import the Name and Email components into the App component.

  5. In the App component's render method, wrap the two imported components in a single dl element.

  6. Render the App component using ReactDOM.render().

  7. The final result will be a single dl element in the browser, with the dt and dd elements for each of the description items.

Folder structure

Root folder
|- src/
|- components/
|- Name/
|- index.js
|- Name.css (optional)
|- Email/
|- index.js
|- Email.css (optional)
|- public/
|- index.html
|- package.json
|- index.js

learning-react_combining-components-basic'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.