C# Класс Bridge.React.ComponentListToReactElementTranslation

Показать файл Открыть проект

Приватные методы

Метод Описание
ToReactElementArray ( IEnumerable components ) : Bridge.React.ReactElement[]

This should only be used by the React.DOM factory method overloads - as such, I haven't created separate strongly-typed method signatures for StatelessComponent and PureComponent, I've rolled them together by having a single signature that takes an object set. This means that this method could feasibly be called with an object of references without the private "_reactElement" property, but no-one should be able to call this anyway so that's very low risk. Note that this won't work with the Component base class, it causes React to throw a "Maximum call stack size exceeded" error that I haven't been able to get to the bottom of yet (the ToChildComponentArray extension methods only supported StatelessComponent and PureComponent, so I'm ok for now with only supporting DOM factory methods that handle dynamic sets of StatelessComponent and PureComponent but not Component)