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.

React: missing methods

See original GitHub issue

Description

There is missing a whole lot of documentation related to React setup. I somehow guessed we might need ref to get carousel’s methods but that’s not the case:

image

My ultimate goal was to create custom arrows to manage carousel’s state through prev/next methods.

Steps to check or reproduce

const flicking = userRef(null)

return (
  <Flicking
    ref={flicking}
  >
  ...
)

Also, but that might be case for another issue, what type should I use when trying to sately type useRef with typescipt? Could that be FlickingType?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
WoodNeckcommented, Apr 10, 2020

Hello, @apa14! Unfortunately, we don’t have any official example of it right now. So I’ve made a quick & simple example of using the method in React:

Hope that helps 😃

0reactions
WoodNeckcommented, Apr 10, 2020

Great to help 😃 I’ll close this issue for now, feel free to open whenever needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

this.props 'missing' method using conect from react-redux
I think i know why you are not seeing the function when you log it. You are looking at the console of the...
Read more >
React - The Missing Parts - Acko.net
One iron rule in React is this: if you render one type of component in place of another one, then the existing component...
Read more >
Getting Started - React
The techniques you'll learn in the tutorial are fundamental to building any React apps, and mastering it will give you a much deeper...
Read more >
React | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA alerts you in case of unused variables and functions, missing closing tags, missing statements, and much more. JavaSxript ...
Read more >
A Guide to Common React Errors
Error: Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null. ... The bug:...
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