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.

[Question] What is the best way to use Rheostat in other component ?

See original GitHub issue

I want to use Rheostat and react-dates in a shared component (a library) but it require initialize step: import 'rheostat/initialize';.

I have some questions:

  1. Where I should put the initialize script ? in the component or in app use the component ?
  2. How can I change a little bit styles in component and allow the app override that styles if need ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
minhtranitecommented, Nov 22, 2018

@ljharb yes. Thank for you support.

0reactions
ljharbcommented, Nov 22, 2018

I think that’d depend on the mechanism you chose to allow overriding of the wrapping component - without css-in-js, everything has to be inline styles or class names, and rheostat doesn’t use that mechanism 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I give connections to a rheostat? - Quora
Initially connect regulated power supply (DC) +ve terminal to terminal-B of rheostat and -ve terminal to A-terminal. Then connect +ve terminal of load...
Read more >
3.27 How to use a Rheostat? - YouTube
0:00 - How do Rheostats work ? 1:08 - Calculation example 2:55 - Different types of variable resistors 3:35 - Explaining example 5:14 ......
Read more >
A Complete Guide to Rheostats - RS Components
Read this comprehensive guide on rheostats, explaining what they are, their uses, how they work, the different types, and how they differ from ......
Read more >
9 Facts On Rheostat:What,Symbol,Types,Applications
It is a three-terminal device, of which two are usable. There is a slider as a moving terminal, and only one is usable...
Read more >
Potentiometer, Preset Potentiometers and Rheostats
Electronics Tutorial about the Potentiometer, Preset Potentiometer and Rheostat which are all variable resistors used to control a voltage.
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