Code Monkey home page Code Monkey logo

react-journey's Introduction

Getting Started with Create React App

This project was bootstrapped with Create React App.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

TODO

List

[x] reflect selected in render

  • should selected boolean on list items? [x] select as set, and remove [x] filter [x] output
  • compute from selected [ ] change global consts, probably don't need characters to be a map, should be array [ ] use passthroughProps

Components

App

view toggles between List and Output, maintains shared state

Props


State

selected List Items

state=='edit'
? <CharacterList />
: <MaterialList />

List

flex row wrap of List Items, where key=name

Props

State

List Item

grid of list item details

Props

State

Output

flex row wrap of materials

Props

State

Interactions

add/remove character

handle click on List Item

switch between list/output views

handle click in App?

Concerns

dynamic data in render calls where to keep selected bools

Qs

  • if there's a list of items with editable data, is each item a form?
  • what if each item has 1 field?
  • what if each item has multiple fields?
  • what if the editable state is owned by each item?
  • what if there is a submit button on each item?
  • what if there is a submit button outside the list?
  • what if subscribing to changes?
  • what if only applying changes on submit?

Scratch

user data ┣ characters ┃ ┗ stats ┗ weapons ┗ stats

view state ┣ view modes ┣ list filters and ordering ┗ tracked characters

┣┃┗┳━

could have edit modes save to their own copy of data, or write to main store on change

List

  • character list display mode toggle
    • animated
  • tracked character editing

react-journey's People

Contributors

samebertz avatar

Watchers

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