Comments (4)
"To clarify, would you like a component with a counter and selector so that the state can be shared between the two?"
Yes completely.
"Currently, there has to be a parent component that manages the state and shares it between the two?"
Yes currently, it is ! thats why my suggestion.
an alternative use
<Bundle>
<Counter/>
<Selector/>
</Bundle>
But not sure if it's work. But if only 1 configuration is available (Counter and Selector) will be fine with events.
I'm ok with the time.
Thanks to maintain this awesome UI features !
from react-reactions.
Hey @c0ncentus,
Thanks for the great suggestion! And thank you for using the package for a long time.
To clarify, would you like a component with a counter and selector so that the state can be shared between the two? Currently, there has to be a parent component that manages the state and shares it between the two?
I like this idea, but it might take longer to implement.
from react-reactions.
Thanks for the quick response!
I like the <Bundle>
as a parent so that we can use Context. The <Bundle>
can be a provider.
I'll come up with an API and ask for your feedback in about a week's time.
from react-reactions.
Hey @c0ncentus,
I like the simple API example you provided. I haven't had time yet to work on it so I can't guarantee when it will be released. You are welcome to try making a PR that adds this feature.
from react-reactions.
Related Issues (20)
- More flexible Reaction Counter HOT 3
- Pass className to Selector HOT 11
- Dependency Dashboard
- Seems like a icon is missing HOT 3
- Closing the selector when clicked outside of the react-reactions component. HOT 6
- Add ref forwarding
- Slack add reaction shows empty box HOT 14
- Handle Slack fonts better HOT 1
- You didn't show in custom counter HOT 16
- Like not working on mobile touch HOT 8
- Hover on GithubCounter missing out on Chrome HOT 2
- Error when I import Reaction Counter HOT 3
- Changing color on background of reaction for slack counter HOT 2
- Reaction should have key and label to allow mutable text on tooltip to support i18n HOT 4
- Make Slack selector opacity 1.0 by default, or allow custom styling HOT 1
- SlackSelector header/top bar category icons are missing HOT 2
- Slack Selector - Flag icons shows only letters on Windows
- reaction labels are not showing while using overflow-x to hidden HOT 25
- Trouble styling some counters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-reactions.