Skip to content

React and typescript. app for javascript code execution in browser

Notifications You must be signed in to change notification settings

Ivan-Mitkov/repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser use

example use: in code cell

import React from "react";

import ReactDOM from "react-dom";

const App = () => < h1> Hi </h1>;

ReactDOM.render( < App />, document.querySelector("#root"));

will render Hi in iframe

 show( < h1> Hi </h1> ) 

is equivalent to

import React from "react";

import ReactDOM from "react-dom";

const App = () => < h1> Hi </h1>;

ReactDOM.render(<App />, document.querySelector("#root"));

if the arg of show() looks like JSX imports and render are done by the function

About

React and typescript. app for javascript code execution in browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published