V
V
Vitaly2017-01-23 14:36:42
npm
Vitaly, 2017-01-23 14:36:42

How to connect third-party react components?

The question is somewhat vague, I will try to formulate. It sounds more like this: is it practiced to connect third-party components, and if so, how can they be published and uploaded to the project? In theory, everything that has already been implemented is better to reuse than to write again. The difficulty is that the architecture of react projects is different - first of all, it seems to me, related to redux. Please comment on this moment.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2017-01-23
@vitali1995

The difficulty is that the architecture of react projects is different - first of all, it seems to me, related to redux.

Just the same, "suitable" components (or maybe someone closer to "plugins") have no connection to how you store data. The rule of good manners is that your component does not know anything about what is happening around, it simply displays the data and calls the handler functions that will change this data somewhere. I think that one of the coolest examples of such a component is react-virtualized
Since this is an npm package, therefore, you need to dig in this direction ( example ). ( google )

S
Sergey Suntsev, 2017-01-23
@GreyCrew

Yes, of course you can, for example, we find the react-bootstrap
component Install it
and connect it
import Button from 'react-bootstrap/lib/Button';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question