mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 21:32:18 +00:00
import another shared component
This commit is contained in:
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;
|
||||
@@ -1,3 +1,7 @@
|
||||
import Box from "./components/Box";
|
||||
import Common from "./components/Common";
|
||||
|
||||
export { Common };
|
||||
export {
|
||||
Box,
|
||||
Common,
|
||||
};
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user