GithubHelp home page GithubHelp logo

vrathsmill / react-actions-lab-web-0217 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/react-actions-lab-web-0217

0.0 1.0 0.0 127 KB

License: Other

JavaScript 93.75% Shell 2.23% HTML 4.02%

react-actions-lab-web-0217's Introduction

React Actions Lab

Overview

In this lab, you'll react to user input in action and pass components as context for actions.

React Spreadsheet

In this lesson we are going to write a simple spreadsheet application. Our goal isn't feature-parity with Microsoft Excel, but it's definitely going to be a lot fun and there are going to be lots of actions.

This is what we're going to build in this lab:

Screenshot

Looks complicated? — Don't worry! All our actions are already there, we just need to implement them!

At the end of this lab, our spreadsheet application is going to have the following functionality:

  • Users will be able to select cells, the currently selected cell is shown in the bottom left hand corner (5 — 1 in the screenshot).
  • The table is dynamic: We can add and remove columns from the able, but there will always be a minimum of one cell.
  • For obvious reasons, our users are going to be able to select a cell and fill it with content.

Components

Our app consists of the following components:

components/
├── Cell.js
├── Row.js
├── Spreadsheet.js
└── Table.js

<Cell />

Each cell represents an individual value in the spreadsheet app / table (e.g. "San Francisco" or "Weather").

<Row />

A single horizontal row that has one or more <Cell />s within it.

<Spreadsheet />

The main entry point of our application. A spreadsheet component contains a single <Table />, binds all actions and encapsulates the application state.

<Table />

A table contains one or more <Row /> components.

Actions

Our actions can be found in actions/index.js. Each action will be bound in the <Spreadsheet /> component.

Resources

bind() Partial function application JavaScript

View React Actions Lab on Learn.co and start learning to code for free.

react-actions-lab-web-0217's People

Contributors

alexandergugel avatar aturkewi avatar thomastuts avatar annjohn avatar pletcher avatar niikwartey avatar enoch2k2 avatar jessrudder avatar vrathsmill avatar

Watchers

James Cloos 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.