Files
react/compiler/apps/playground/lib/defaultStore.ts
lauren a0dc166991 [rfc] Remove top level forget directory
Sorry about the thrash in advance! This removes the top level `forget` directory 
which adds unnecessary nesting to our repo 

Hopefully everything still works
2023-08-22 15:04:54 -04:00

45 lines
736 B
TypeScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
import type { Store } from "./stores";
const index = `\
function fibbonacci(n) {
let a = 0;
let b = 1;
let c = 1;
for (let i = 0; i < n; i++) {
a = b;
b = c;
c = a + b;
}
return a;
}
`;
export const defaultStore: Store = {
source: index,
};
const minimalIndex = `\
export default function MyApp() {
return <div>Hello World</div>;
}
`;
export const minimalStore: Store = {
source: minimalIndex,
};
export const emptyStore: Store = {
source: "",
};