Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement React wrappers for FDS components #1

Merged
merged 5 commits into from
Feb 5, 2024

Conversation

Haprog
Copy link
Contributor

@Haprog Haprog commented Feb 1, 2024

Initial implementation of React wrappers for FDS components.

Closes fintraffic-design/fds-coreui-components#56

Create a workaround for keeping generic value type of Dropdown component when creating a React wrapper.

Note: this React component is unusable until this bug is fixed in the web component repository fintraffic-design/fds-coreui-components#65 but this change has been tested with a locally patched version of the web component.
@Haprog Haprog marked this pull request as ready for review February 2, 2024 08:51
@Haprog
Copy link
Contributor Author

Haprog commented Feb 2, 2024

These components have been tested to work in a React test app, except FdsDropdown does not yet work due to a bug in the web component. It will start working after this is fixed fintraffic-design/fds-coreui-components#65

@Haprog Haprog requested a review from ninopenttinen February 2, 2024 11:17
@Haprog
Copy link
Contributor Author

Haprog commented Feb 2, 2024

One notable DX challenge we still have with this is how to make render props (currently renderHeader and renderItem in FdsTable) usable nicely in React. I made a separate issue about this here: #2

Copy link
Collaborator

@ninopenttinen ninopenttinen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff again 👌

README.md Show resolved Hide resolved
src/dropdown.ts Outdated Show resolved Hide resolved
@Haprog Haprog force-pushed the feat/initial-setup branch from 177000c to 8643363 Compare February 5, 2024 10:45
@Haprog Haprog merged commit b87bb55 into main Feb 5, 2024
@Haprog Haprog deleted the feat/initial-setup branch February 5, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React wrapper for the Web components
2 participants