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) 專家即時聊天詢問。