algolia / algolia/react-element-to-jsx-string

className not working?

Open
#832 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
518
Forks
87
Avg merge
3h 56m
Merged PRs (30d)
3

Description

I have a simple `...`

Everything works great except generated html is `` . Instead of `class="table table-condensed"` it remains lower case `classname`.

I don't see a correct way of using it in documentation

Edit: I just did a string replace to get through it but I was still wonder if I'm missing anything

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported table conversion in the repository using a React element with className="table table-condensed". Trace the JSX-to-string handling for the className prop and verify that the generated HTML uses class="table table-condensed" without requiring a caller-side string replacement.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.