mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
e855f91e85
* Expand fixture Use .server convention. /server/index.js should really change too so it can be compiled but for now we treat it as bootstrapping code outside the compiled code. Move App.server. It's part of the application code rather than the infra. Add hybrid component used in both server/client and an extra component shared by multiple entry points. * Use require.extensions to replace .client imports The simplest server doesn't need AOT compilation. Instead we can just configure require.extensions. This is probably not the best idea to use in prod but is enough to show the set up.
6 lines
115 B
JavaScript
6 lines
115 B
JavaScript
import * as React from 'react';
|
|
|
|
export default function Container({children}) {
|
|
return <div>{children}</div>;
|
|
}
|