J
J
JavaSscriptNoob2021-11-23 19:40:37
React
JavaSscriptNoob, 2021-11-23 19:40:37

What does this tsx entry mean?

Hello everyone, I have this code:

export default _flowRight(memo, withFiltering, withSorting)(FieldList) as React.FunctionComponent<
  IFieldListProps
>;

I'm trying to understand what it does, according to my guess, this is the code in which the component is exported, which is wrapped in a hook, after which it wraps in a hook again. Do I think correctly, please tell me
PS _flowRight - f-I from lodash

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tehfreak, 2021-11-23
@tehfreak

Yes, you think right. This is what it looks like without using _flowRight

export default memo(withFiltering(withSorting(FieldList)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question