GrapeCity 博客 - 如何在 Wijmo 应用程序中使用 React Hooks

从您数据网格和图表 Web 应用程序中的组件提取状态逻辑。
6月 14, 2022
新闻快讯

Wijmo is a complete collection of extensible, fast JavaScript UI components written in TypeScript. The framework-agnostic Wijmo components include first-class support for top frameworks including React. In version 16.8, React Hooks were introduced to the framework, which allows developers to extract stateful logic from components so that they can be reused, and it does not require you to change your component hierarchy. They allow you to "hook" into a React state from function components.

In this blog post, GrapeCity's Joel Parks shows how you can use React Hooks to build an application that incorporates Wijmo's React DataGrid, FlexGrid, as well as its chart control, FlexChart. These steps include:

  • Creating the React application
  • Importing Wijmo's CSS
  • Adding a Data Source
  • Implementing Wijmo DataGrid and Chart
  • Creating custom events to connect controls

Read this informative GrapeCity blog now and get ready to take your React applications to the next level.

Use React Hooks in Wijmo

Wijmo

用于企业应用的高性能 JavaScript UI 组件。

有任何疑问吗?

透过Live Chat与我们的MESCIUS (formerly GrapeCity) 专家联络!