test: refactor test:demo script into demo/*/test.sh

This commit is contained in:
Yang Jun
2024-08-29 01:30:25 +08:00
committed by Jun Yang
parent da516a4fd6
commit 62bb20e433
48 changed files with 3018 additions and 23043 deletions
+13
View File
@@ -0,0 +1,13 @@
import { Context } from './Context';
export function ClickButton() {
return (
<Context.Consumer>
{context => (
<button onClick={context.count}>
Click Here!
</button>
)}
</Context.Consumer>
);
};