Ridiculously Easy to Use
120 |// 1. Add the script
122 | <script src="https://ssreact.com/min.js"></script>
123 |
124 | // 2. Write your component
125 | <script type="text/babel">
126 |
127 | function Greeting({ name }) {
128 | const [count, setCount] = React.useState(0);
129 | return (
130 | <div onClick={() => setCount(count + 1)}>
131 | Hello {name}! Clicks: {count}
132 | </div>
133 | );
134 | }
135 | </script>
136 |
137 | // 3. Use it with ssreact.ComponentName
138 | <div id="ssreact.Greeting"></div>
139 |