question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bento Tracking Issue: React/Preact compatibility

See original GitHub issue

Description

There are some nuances in React and Preact compatibility we need to address to ensure our Bento components written in Preact are well built in React for their releases. At the very least, there should be no warnings when running our components in React development mode. This is a tracking issue for the effort in doing so.

Alternatives Considered

n/a

Additional Context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
estherkimcommented, Oct 13, 2021

Chatted with @caroqliu offline - we decided that using React syntax with preact/compat to ensure Preact compatibility would be a better fix than adding a build step. No performance issues in using the plugin because it is already being imported.

Back to @caroqliu for next steps?

0reactions
caroqliucommented, Oct 15, 2021

Thanks for performing the analysis here, Alan.

If we ensure that our source has props in React-style, how are we accomplishing that? Do we know of an existing transform that we can run on our codebase?

I assume it would be a change on the preact-preferred-props lint rule, which currently enforces an non-exhaustive set into Preact style, and could be modified to prefer React-style.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Differences to React - Preact
For both preact and preact/compat, version compatibility is measured against the current and previous major releases of React.
Read more >
Untitled
Free download track of nepali songs, Faja postparto coppel, Emailing the ... Bibio silver wilkinson mp3, Broken gameshark, Hypermotard 796 problems, ...
Read more >
Get started | bentojs.dev
Bento components are fundamentally React functional components, released as Preact or React, and in regular or minified builds. Install each Bento component as ......
Read more >
Pascal Birchler - Just Another WordPress Enthusiast
Using Bento Components for Gutenberg Block Development ... as custom elements, but also as React and Preact components with the same features and...
Read more >
react - ABC Developer Blog
Posts about react written by Julian Fell, Tim Holt, and Simon Schwartz. ... The obvious use-case is to switch it out for an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found