https://github.com/clovu/jsxify-html
A library for converting an HTML string into a JSX string using ASTs.
https://github.com/clovu/jsxify-html
Last synced: about 1 year ago
JSON representation
A library for converting an HTML string into a JSX string using ASTs.
- Host: GitHub
- URL: https://github.com/clovu/jsxify-html
- Owner: clovu
- License: mit
- Created: 2024-08-16T17:00:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T05:26:06.000Z (about 1 year ago)
- Last Synced: 2025-03-10T06:27:02.950Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://jsxify-html.vercel.app
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# My Project
The primary focus of this project is to provide utilities for handling HTML and JSX in a React environment.
## Packages
### `jsxify-html`
[`jsxify-html`](./packages/jsxify-html) is one of the core packages in this project. It provides utilities for converting HTML to JSX syntax, making it easier to integrate HTML content into React components.
- **Installation:** `pnpm add jsxify-html`
- **Repository:** [jsxify-html](./packages/jsxify-html)
- **Documentation:** See [jsxify-html README](./packages/jsxify-html/README.md) for more details.
#### Usage Example
```ts
import { convert } from 'jsxify-html'
const jsx = convert('
Hello World')
```
## Getting Started
To get started with this project, first clone the repository and install dependencies:
```bash
git clone https://github.com/your-username/your-repo.git
cd your-repo
pnpm install
```
### Running Tests
To run the tests for all packages, use:
```bash
pnpm test
```
### Building Packages
To build all packages in the monorepo, run:
```bash
pnpm build
```
## License
This project is licensed under the MIT License.
## Contributing
Contributions are welcome! Please read the [contributing guidelines](./CONTRIBUTING.md) before submitting a pull request.