Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.7 KB

intermediate-1.md

File metadata and controls

65 lines (50 loc) · 2.7 KB

React workshop - Unit Intermediate-1

Overview

This unit deals with techniques to break any application into components using flexbox as our layout system.

Unit Tickets

NOTICE: before you start working, please checkout branch intermediate-1 and use it to develop this unit tasks

Ticket Intermediate-1

  • create the following layout. use the names shown in the diagram. you should expect total of 3 components desired layout

Once completed, you can review the suggested solution here

Ticket Intermediate-1.1

You can continue your work or checkout and continue with branch intermediate-1.1

  • create file plopfile.js
module.exports = plop => {
  plop.setGenerator('component', {
    description: 'Create a component',
    prompts: [
      {
        type: 'input',
        name: 'name',
        message: 'What is your component name?'
      },
    ],
  });
};
  • add the following files (empty for now)
plop-templates
  |- components
    |- index.ts.hbs
    |- {{kebabCase name}}.module.css.hbs
    |- {{kebabCase name}}.tsx.hbs
  • use one of the existing components as a reference and try to fill the hbs files.

Once completed, you can review the suggested solution here

Ticket Intermediate-1.2

You can continue your work or checkout and continue with branch intermediate-1.2

  • create the following layout. use the names shown in the diagram. you should expect total of 6 components desired layout

Once completed, you can review the suggested solution here

Ticket Intermediate-1.3

You can continue your work or checkout and continue with branch intermediate-1.2

  • create the following layout. use the names shown in the diagram. you should expect total of 9 components desired layout

Once completed, you can review the suggested solution here

Unit Highlights

  • flexbox

Unit References