0

我正在使用 InstantSearch 组件在我的网络应用程序上实现搜索,并且一切正常,现在我想知道,如何更改我刚刚导入到项目中的组件的内部文本?

比如我自己的组件是这样的:(当然还有imports和class)

render() {
        return (
            <div className="searchform-filters">

                <div className="searchform-filter-row1">
                    <Brand searchState={this.props.searchState} />
                    <Type searchState={this.props.searchState} />
                </div>

                <div className="searchform-clearall">
                    <ClearAll />
                </div>

            </div>
        );
    }

例如,“< ClearAll />”组件会生成一个带有“Clear All”文本的按钮。我只是想更改它,但它是从 node_modules 导入的。我应该将什么传递给这个组件,或者我该如何更改它?提前致谢。

4

0 回答 0