Skip to content
#

jsx

aurelia logo

Aurelia is a next generation JavaScript client framework that leverages simple conventions to empower your creativity.

Here are 2,140 public repositories matching this topic...

prettier
lydell
lydell commented Mar 22, 2020

Now that Prettier 2.0 has been released with its improved CLI, I think we should add a section do the docs showing a recommended example setup.

  1. Recommend using an editor extension that lets you run Prettier from your editor. Link to popular extensions. Maybe add some tips on how to configure for example prettier-vscode.
  2. Recommend adding an empty ({}) .prettierrc.json to signify to edit
preact
eliotsykes
eliotsykes commented Oct 3, 2019

I'm sorry to post an issue that is missing crucial evidence, but some debugging of a recent config loading bug makes me suspect that the react-rails railtie.rb may be modifying the load order of initializers, and preventing the values in Rails.application.config being as expected.

Whether this happens or not appears to be partly dependent on where in the Gemfile the react-rails gem is l

nick-at-hawkfish
nick-at-hawkfish commented Jan 27, 2020

It would be nice to have a babel macro that automatically runs the babel plugin to remove the runtime. That way, this project would work out of the box with "zero" config tools like create-react-app.

I'm thinking it could be something like:

import {html} from 'htm/preact/macro'

This is similar conceptually to CSS-IN-JS libraries providing a macro for their tools. See https://e

ChALkeR
ChALkeR commented Jan 7, 2020

To reproduce:

$ npm pack styled-jsx@3.2.4
npm notice
npm notice 📦  styled-jsx@3.2.4
npm notice === Tarball Contents ===
npm notice 6.1kB  dist/.DS_Store
npm notice 599B   dist/_constants.js
npm notice 22.3kB dist/_utils.js
npm notice 8.2kB  dist/babel-external.js
npm notice 46B    babel-test.js
npm notice 753B   dist/babel-test.js
npm notice 41B    babel.js
npm notice 10.4k
blocks
sh0ji
sh0ji commented Dec 19, 2019

I believe the summary element should be considered an interactive element and that there shouldn't be any errors thrown when a click listener is attached to it:

// currently flags the following:
// jsx-a11y/click-events-have-key-events
// jsx-a11y/no-static-element-interactions
<summary onClick={clickHandler} />

[The spec does list details element as interactive](https:

bug
brainkim
brainkim commented Apr 24, 2020

If people are going to use onevent props we should probably have them typed to prevent no implicit any errors. Maybe we can take the typings from Preact or something similar? My one concern is that intrinsic elements are already sorta loosely typed (data-attrs can be of type any), and I don’t really see the value of typing intr

torabiho
torabiho commented May 22, 2018

Hi
The component I'm working on is supposed to attach a node to doument.body using createPortal from react-dom and it works perfectly fine outside of playground, but as soon as playgorund tries to run it the entire page freezes and I have to close the tab.

I get this message paused before potential out of memory crash with this line highlighted in the `react-dom-server.browser.developm

adidahiya
adidahiya commented Mar 12, 2019

Similar to palantir/tslint#4534... note that all formatting rule requests will be declined because we recommend using Prettier for code formatting.

You may also use this thread as a place to submit feedback about the state of eslint-plugin-react w/ TypeScript.


Update (June 2019): a more concrete roadmap timeline:

  • August 1st, 2019: Stop accepting new
You can’t perform that action at this time.