question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m opening this issue so we can discuss how Ink could take advantage of React Hooks.

For example, maybe useStdin() instead of <StdinContext>?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
vadimdemedescommented, Oct 5, 2019

In 2.5.0 useApp, useStdin and useStdout hooks were added.

1reaction
vadimdemedescommented, Jan 12, 2020

I don’t think there’s a benefit to having useExit when useApp exposes the same functionality via exit function.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing Hooks - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. ... This...
Read more >
React Hooks - W3Schools
Hooks were added to React in version 16.8. Hooks allow function components to have access to state and other React features.
Read more >
React Hooks Tutorial – useState, useEffect, and How to ...
Hooks were first introduced in React 16.8. And they're great because they let you use more of React's features – like managing your ......
Read more >
The Guide to Learning React Hooks (Examples & Tutorials)
First released in October of 2018, the React hook APIs provide an alternative to writing class-based components, and offer an alternative approach to...
Read more >
10 React Hooks Explained // Plus Build your own from Scratch
React hooks provide a highly-efficient was to tap into framework features and organize reactive logic. Learn how use every built-in React ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found