Skip to content

20171127PM: React lesson learning how to use components to hide bootstrap code

Notifications You must be signed in to change notification settings

developingAlex/react-bootstrap-components

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

20171127-afternoon

previous (and first) react exercise: react-flight-booking

Getting Started

yarn install

Notes

  • At its most simplest, a React component is a function that returns an HTML element
  • The React component function takes key-value pairs called 'props' — very similar to HTML attributes. However, the keys can be named whatever you like.
  • React components can also render (return) other React components
  • You can bundle up a lot of power in one React component — multiple HTML elements for example
  • Things nested inside a rendered component become accessible as the children prop
  • React component can dynamically change what HTML tag it will use — e.g. use <a> when href prop is passed, otherwise use <button>
  • String interpolation is great for punching prop values into class names

Challenges

  1. Add components for Alert
  2. Add components for Card
  3. Add components for Forms and Fields

Info

This project was bootstrapped with Create React App.

Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.

About

20171127PM: React lesson learning how to use components to hide bootstrap code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.0%
  • Other 1.0%