Giter VIP home page Giter VIP logo

react-tui's People

Contributors

cdaringe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

benasmot

react-tui's Issues

bug: various hooks seem ill-behaved

problem

  • useRef doesnt update to with references to blessed nodes
  • useState generally works, but in some cases inside of useEffect closures, correct state is not reflected out (see examples/index) where the same impl works in React.PureComponent vs FC impl

<Form /> has lame focus behavior

problem

on "tab" internal blessed <Form /> implements its own focus handler, preventing me from escaping the form. if there's only one el, it never unfocuses the single el

feat: improve list selection

problem

blessed emits the text of the item, so the user cannot conveniently bind a cb to an item--an intermediary fn must lookup other context via plain-text then execute. bummer!

rfc: implement a web-like box model on top of blessed box model

problem

<Box>
  <Text>a</Text>
  <Text>b</Text>
</Box>

results in just plain b rendered, as opposed to ab as expected in web & RN.

context

in the blessed model, all boxes are relative to parent nodes. siblings must position themselves via width/height/left/top-like props, vs a natural flowing layout.

we're an enhanced flow model to be used, it would certainly collide with ^ aforementioned absolute positioning APIs (errrr relatively absolute :)), and such APIs would have to be privatized, etc

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.