import another shared component

This commit is contained in:
Brandon Thomas committed 2022-02-01 01:17:34 -05:00
1 parent e35fa52e6d
commit c84798dae3
3 files changed
+16 -2

No files matched your search

@@ -0,0 +1,9 @@
import React from 'react';
function Common() {
return (
<h1>Common Component</h1>
);
}
export default Common;
+5 -1
View File
@@ -1,3 +1,7 @@
import Box from "./components/Box";
import Common from "./components/Common";
export { Common };
export {
Box,
Common,
};
+2 -1
View File
@@ -1,7 +1,7 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Common } from "@storyteller/components";
import { Box, Common } from "@storyteller/components";
function App() {
return (
@@ -12,6 +12,7 @@ function App() {
FakeYou
</p>
<Common />
<Box />
<a
className="App-link"
href="https://reactjs.org"