gajus / gajus/babel-plugin-react-css-modules

It didn't render as except, and render class in a strange way

オープン
#272 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
JavaScript
スター
2k
フォーク
159
PR マージ指標
30日以内にマージされた PR はありません

説明

![image](https://user-images.githubusercontent.com/18119418/65385441-3870e600-dd61-11e9-9941-c78640fe121a.png)
When I code like that, the boxed part didn't render any class, like show in the below
![image](https://user-images.githubusercontent.com/18119418/65385444-563e4b00-dd61-11e9-9604-770ec5c53dd2.png)

But when I add a new line like this
![image](https://user-images.githubusercontent.com/18119418/65385479-a1585e00-dd61-11e9-8c0f-2a6f9c778f63.png)
It's OK now!!! But it is unpridictable, I can't code in this way
![image](https://user-images.githubusercontent.com/18119418/65385492-d369c000-dd61-11e9-9e4e-25f01ed78be9.png)
So, what's the problem

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

このレポートにはスクリーンショットはありますが、再現可能なコード、ファイル、テスト名がありません。まず、画像に示されている JSX と styleName の使用方法を再現し、次に className の出力を生成する Babel の変換を追跡してください。同じコードが追加の改行を必要とせず、期待されるクラスを一貫してレンダリングできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
babel, javascript, react
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。