Skip to content

[feature]: Add HTML to JSX Converter for React developers #20

Description

@rishima17

Summary
Add a utility to convert standard HTML code into JSX syntax. This is essential for developers migrating legacy templates or using CSS frameworks like Tailwind where class must be changed to className, and self-closing tags must be respected.

Proposed User Interface
Dual Editor Views:
Input (HTML): Code editor with syntax highlighting.
Output (JSX): Read-only editor with JSX syntax highlighting.
Options:
Create Function Component: Wrap the output in a export default function Component() { ... } block.
Inline Styles to Object: Automatically convert style="color: red" to style={{ color: 'red' }}.
Technical Implementation Details
Logic: Use a library like htmltojsx or hast-util-to-jsx.
File Path: app/components/developmentToolsComponent/htmlToJsxConverter.tsx

Make sure to raise PR against develop branch , not main.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions