Importing withResponsiveness() helper
See original GitHub issueHi Guys. Could you advise on the intended way to import the withResponsiveness
helper?
Current Behaviour
In the docs it uses a relative import, which I assume is because you compile your docs examples (nice)
I’ve found the compiled version in britecharts-react/lib/esm/helpers
and the below code works fine, but is quite long-winded:
import withResponsiveness from 'britecharts-react/lib/esm/helpers/withResponsiveness';
Expected Behaviour
I would like to import withResponsiveness()
from the root, so:
import { Bar, withResponsiveness } from 'britecharts-react';
Possible Solution
Happy to submit a PR to fix this, just let me know 😃
Your Environment
- Version used:
0.4.1
with TypeScript 3.1 and React 16.6
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Importing helper functions in Serverless - Stack Overflow
I want to import a helper function into a Node.js Lambda function in Serverless (AWS). I've tried using Layer functions, ...
Read more >Importing Student Data - Handshake Help Center
Importing student data is a vital step in implementing Handshake. It's the most efficient way to ensure you're populating accurate...
Read more >import() - JavaScript - MDN Web Docs - Mozilla
The import() syntax, commonly called dynamic import, is a function-like expression that allows loading an ECMAScript module asynchronously ...
Read more >Using AngularJS helper provided in the Responsive Coaches ...
The helper functions are used by the out-of-the-box responsive coaches, ... For more information, see Importing toolkits from the Process Center console.
Read more >NetSuite Applications Suite - Permissions for Importing ...
Items Available to the Item Search API · The Base URL · Item Search API Input Parameters · Item Search API Output Response...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @juanpaucar,
I just released 0.5.1 with this fix, it should be ready in NPM soon!
Since is an option we have for the charts and is a feature listed in the docs I think it should be included or at least well referenced in the docs, but first I think we should fix the issue #105 that is still happening in
britecharts-react
v0.5.0 as you can confirm in this test project.