You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Translation/src/components/steptwo.tsx

53 lines
1.2 KiB

import { Text, View, Button, useEventHandler } from "@nodegui/react-nodegui";
import { QPushButtonSignals } from "@nodegui/nodegui";
import React from "react";
import open from "open";
export function StepTwo() {
const btnHandler = useEventHandler<QPushButtonSignals>(
{
clicked: () => open("https://react.nodegui.org").catch(console.log)
},
[]
);
return (
<View style={containerStyle}>
<Text style={textStyle} wordWrap={true}>
{`
<ol>
<li>
Open chrome and navigate to chrome://inspect. You should see a target below with your app.
</li>
<br/>
<li>
Next click on "Open dedicated DevTools for Node"
</li>
<br/>
<li>
On the dedicated devtools. Click on Source > Node > "Your node process"
</li>
</ol>
`}
</Text>
<Button
style={btnStyle}
on={btnHandler}
text={`Open React NodeGui docs`}
></Button>
</View>
);
}
const containerStyle = `
flex: 1;
justify-content: 'space-around';
`;
const textStyle = `
padding-right: 20px;
`;
const btnStyle = `
margin-horizontal: 20px;
height: 40px;
`;