Skip to content

Commit

Permalink
React-Actix_Ex: Fix React rendering
Browse files Browse the repository at this point in the history
The previous implementation didn't work due to an issue with metacall
Learn more: metacall/core#361
  • Loading branch information
thequantumquirk committed Jan 2, 2023
1 parent 4c4468e commit 8fe5b4b
Show file tree
Hide file tree
Showing 15 changed files with 337 additions and 243 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
METACALL_DEBUG = 1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/node_modules
3 changes: 3 additions & 0 deletions App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.main {
color: blue
}
7 changes: 7 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';
import { renderToString } from 'react-dom/server';
import "./App.css";

export function hello(text: string): string {
return renderToString(<h1 className="main">Hello {text}</h1>);
}
23 changes: 0 additions & 23 deletions app/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions app/App.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions app/README.md

This file was deleted.

114 changes: 0 additions & 114 deletions app/package-lock.json

This file was deleted.

13 changes: 0 additions & 13 deletions app/package.json

This file was deleted.

12 changes: 0 additions & 12 deletions app/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions helloworld.ts

This file was deleted.

Loading

0 comments on commit 8fe5b4b

Please sign in to comment.