elnardu / react-use-c

Use C in your React!
547 stars 16 forks source link

Use template literals #1

Open KritR opened 10 months ago

KritR commented 10 months ago

The c code should compile within template literals.

const output = c_lang`
#include <stdio.h>

int main()
{
 ....
}
... 
`
elnardu commented 10 months ago

But that would be compatible with other bundlers! We MUST invent our own syntax